mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-06 05:19:43 +00:00
[WIP] initialize an app for address-picker + a demo page
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
import {Address} from "ChillMainAssets/types";
|
||||
|
||||
interface AddressPickerProps {
|
||||
suggestions?: Address[];
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<AddressPickerProps>(), {
|
||||
suggestions: []
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<p>test</p>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
@@ -0,0 +1,10 @@
|
||||
import {createApp} from "vue";
|
||||
import AddressPicker from "ChillMainAssets/vuejs/AddressPicker/AddressPicker.vue";
|
||||
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
document.querySelectorAll<HTMLDivElement>('div[data-address-picker]').forEach((elem): void => {
|
||||
const app = createApp(AddressPicker);
|
||||
|
||||
app.mount(elem);
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user