diff --git a/packages/nc-gui/components/cell/GeoData.vue b/packages/nc-gui/components/cell/GeoData.vue index 764609f94b..08fde6efc8 100644 --- a/packages/nc-gui/components/cell/GeoData.vue +++ b/packages/nc-gui/components/cell/GeoData.vue @@ -4,6 +4,10 @@ import { useVModel } from '#imports' interface Props { modelValue?: string | null + defaultGeoPosition?: { + lat: number + long: number + } } interface Emits { @@ -16,6 +20,8 @@ const emits = defineEmits() const vModel = useVModel(props, 'modelValue', emits) +const defaultGeoPosition = useVModel(props, 'defaultGeoPosition') + let error = $ref() let isExpanded = $ref(false) @@ -93,6 +99,7 @@ const onGetCurrentLocation = () => { @mousedown.stop /> + defaultGeoPosition: {{ JSON.stringify(defaultGeoPosition) }} () @@ -139,7 +144,7 @@ const syncAndNavigate = (dir: NavigateDir, e: KeyboardEvent) => { >