PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { tools } from '@tools'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { defineComponent, onMounted, onBeforeUnmount, ref, watch, computed, PropType, nextTick, shallowRef } from 'vue'
|
||||
import type { PropType} from 'vue';
|
||||
import { defineComponent, onMounted, onBeforeUnmount, ref, watch, computed, nextTick, shallowRef } from 'vue'
|
||||
|
||||
import 'leaflet/dist/leaflet.css'
|
||||
import * as L from 'leaflet'
|
||||
@@ -14,7 +15,7 @@ import { useUserStore } from '@src/store/UserStore'
|
||||
// Importa le immagini dei marker
|
||||
import icon from 'leaflet/dist/images/marker-icon.png'
|
||||
import iconShadow from 'leaflet/dist/images/marker-shadow.png'
|
||||
import { ICoordGPS, ICoordLatLng } from '@src/model'
|
||||
import type { ICoordGPS, ICoordLatLng } from '@src/model'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CMapEditAddressByCoord',
|
||||
@@ -202,7 +203,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function updateMap() {
|
||||
|
||||
|
||||
map.value?.setView([localCoordinates.value.lat, localCoordinates.value.lng], zoomLevel.value)
|
||||
}
|
||||
|
||||
@@ -223,6 +224,7 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
const getAddressSuggestions = async (val: string, update: Function) => {
|
||||
try {
|
||||
if (val.length === 0) {
|
||||
@@ -302,7 +304,7 @@ export default defineComponent({
|
||||
localAddress.value = ''
|
||||
localAddressObj.value = { label: '', value: '' }
|
||||
} else {
|
||||
localAddressObj.value = { label: props.modelValue.address, value: props.modelAddress }
|
||||
localAddressObj.value = { label: props.modelValue.address, value: props.modelValue.address }
|
||||
}
|
||||
if (!props.modelValue.coordinates) {
|
||||
localCoordinates.value = { lat: 0, lng: 0 }
|
||||
@@ -388,4 +390,4 @@ export default defineComponent({
|
||||
fineLoad,
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user