mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 23:53:50 +00:00
[WIP] initialize search bar
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user