mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 07:27:33 +08:00
code refactor
This commit is contained in:
@@ -32,10 +32,12 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, useTemplateRef } from 'vue';
|
||||
import type MapView from '@/components/common/MapView.vue';
|
||||
import MapView from '@/components/common/MapView.vue';
|
||||
|
||||
import type { MapPosition } from '@/lib/map/base.ts';
|
||||
|
||||
type MapViewType = InstanceType<typeof MapView>;
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue?: MapPosition;
|
||||
show: boolean;
|
||||
@@ -46,7 +48,7 @@ const emit = defineEmits<{
|
||||
(e: 'update:show', value: boolean): void
|
||||
}>();
|
||||
|
||||
const map = useTemplateRef<MapView>('map');
|
||||
const map = useTemplateRef<MapViewType>('map');
|
||||
|
||||
const geoLocation = computed<MapPosition | undefined>({
|
||||
get: () => {
|
||||
|
||||
Reference in New Issue
Block a user