code refactor

This commit is contained in:
MaysWind
2025-01-11 13:59:47 +08:00
parent 61f26e060e
commit 89b233e51b
25 changed files with 128 additions and 128 deletions
+6 -6
View File
@@ -46,8 +46,8 @@ const props = defineProps<{
}>();
const emit = defineEmits<{
(e: 'update:modelValue', value: MapPosition | undefined): void,
(e: 'update:show', value: boolean): void
(e: 'update:modelValue', value: MapPosition | undefined): void;
(e: 'update:show', value: boolean): void;
}>();
const { tt } = useI18n();
@@ -63,21 +63,21 @@ const geoLocation = computed<MapPosition | undefined>({
}
});
function save() {
function save(): void {
emit('update:show', false);
}
function close() {
function close(): void {
emit('update:show', false);
}
function onSheetOpen() {
function onSheetOpen(): void {
if (map.value) {
map.value.initMapView();
}
}
function onSheetClosed() {
function onSheetClosed(): void {
close();
}
</script>