Bootstrap na planovac
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<script setup>
|
||||
import MapWithMarkers from "components/map/MapWithMarkers.vue";
|
||||
import {onMounted, ref, watch} from "vue";
|
||||
import {usePointsOfInterestStore} from "stores/PointsOfInterest";
|
||||
import ComboboxInput from "components/inputs/ComboboxInput.vue";
|
||||
import {storeToRefs} from "pinia";
|
||||
import {debounce} from "quasar";
|
||||
import {commonProps} from "src/composables/inputs";
|
||||
|
||||
const markers = ref([]);
|
||||
|
||||
const place = ref("");
|
||||
|
||||
const {pointsOfInterest} = storeToRefs(usePointsOfInterestStore());
|
||||
// onMounted(() => {
|
||||
// usePointsOfInterestStore().fetch({});
|
||||
// })
|
||||
|
||||
watch(() => place.value, (newVal) => {
|
||||
usePointsOfInterestStore().fetch({search: newVal});
|
||||
})
|
||||
|
||||
const searchPosition = () => {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
<ComboboxInput :options="pointsOfInterest" v-bind="commonProps" :v-model="place" label="Misto" />
|
||||
<q-btn @click="searchPosition">Najit</q-btn>
|
||||
|
||||
<MapWithMarkers :markers="markers" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user