[WIP] initialize search bar

This commit is contained in:
2025-07-21 00:53:26 +02:00
parent 189a26e0e8
commit a2b8e0e6ae
3 changed files with 49 additions and 15 deletions

View File

@@ -1,22 +1,23 @@
<script setup lang="ts">
import {Address} from "ChillMainAssets/types";
import { Address } from "ChillMainAssets/types";
import SearchBar from "ChillMainAssets/vuejs/AddressPicker/Component/SearchBar.vue";
interface AddressPickerProps {
suggestions?: Address[];
}
const props = withDefaults(defineProps<AddressPickerProps>(), {
suggestions: []
suggestions: () => [],
});
const onSearch = function (search: string) {
console.log("onSearch", search);
};
</script>
<template>
<p>test</p>
<search-bar @search="onSearch"></search-bar>
<p>test</p>
</template>
<style scoped lang="scss">
</style>
<style scoped lang="scss"></style>