[WIP] initialize an app for address-picker + a demo page

This commit is contained in:
2025-07-21 00:20:27 +02:00
parent 6d432ca2cb
commit 4323773595
5 changed files with 58 additions and 0 deletions

View File

@@ -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>

View File

@@ -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);
})
})