|
|
@ -72,19 +72,49 @@ const onGetCurrentLocation = () => { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<a-dropdown :is="isExpanded ? AModal : 'div'" v-model:visible="isExpanded" trigger="click" overlay-class-name="dropdown-new"> |
|
|
|
<a-dropdown :is="isExpanded ? AModal : 'div'" v-model:visible="isExpanded" trigger="click"> |
|
|
|
<a-button>{{ latLongStr }}</a-button> |
|
|
|
<a-button>{{ latLongStr }}</a-button> |
|
|
|
<template #overlay> |
|
|
|
<template #overlay> |
|
|
|
<a-form :model="formState" class="flex flex-col" @finish="handleFinish"> |
|
|
|
<a-form :model="formState" class="flex flex-col" @finish="handleFinish"> |
|
|
|
<a-form-item class="inputLat" label="Lat"> |
|
|
|
<a-form-item class="inputLat" label="Lat"> |
|
|
|
<a-input v-model:value="formState.latitude" type="number" step="0.0000001" required :max="90" :min="-90" /> |
|
|
|
<a-input |
|
|
|
|
|
|
|
v-model:value="formState.latitude" |
|
|
|
|
|
|
|
type="number" |
|
|
|
|
|
|
|
step="0.0000001" |
|
|
|
|
|
|
|
:min="-90" |
|
|
|
|
|
|
|
required |
|
|
|
|
|
|
|
:max="90" |
|
|
|
|
|
|
|
@keydown.down.stop |
|
|
|
|
|
|
|
@keydown.left.stop |
|
|
|
|
|
|
|
@keydown.right.stop |
|
|
|
|
|
|
|
@keydown.up.stop |
|
|
|
|
|
|
|
@keydown.delete.stop |
|
|
|
|
|
|
|
@selectstart.capture.stop |
|
|
|
|
|
|
|
@mousedown.stop |
|
|
|
|
|
|
|
/> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
<a-form-item class="inputLng" label="Lng"> |
|
|
|
<a-form-item class="inputLng" label="Lng"> |
|
|
|
<a-input v-model:value="formState.longitude" type="number" step="0.0000001" required :min="-180" :max="180" /> |
|
|
|
<a-input |
|
|
|
|
|
|
|
v-model:value="formState.longitude" |
|
|
|
|
|
|
|
type="number" |
|
|
|
|
|
|
|
step="0.0000001" |
|
|
|
|
|
|
|
required |
|
|
|
|
|
|
|
:min="-180" |
|
|
|
|
|
|
|
:max="180" |
|
|
|
|
|
|
|
@keydown.down.stop |
|
|
|
|
|
|
|
@keydown.left.stop |
|
|
|
|
|
|
|
@keydown.right.stop |
|
|
|
|
|
|
|
@keydown.up.stop |
|
|
|
|
|
|
|
@keydown.delete.stop |
|
|
|
|
|
|
|
@selectstart.capture.stop |
|
|
|
|
|
|
|
@mousedown.stop |
|
|
|
|
|
|
|
/> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
<a-form-item class="flex align-center location"> |
|
|
|
<a-form-item> |
|
|
|
<MdiReload v-if="isLoading" :class="{ 'animate-infinite animate-spin text-gray-500': isLoading }" /> |
|
|
|
<div style="display: flex; align-items: center; margin-right: 0.5rem"> |
|
|
|
<a-button class="ml-2" @click="onGetCurrentLocation">Your Location</a-button> |
|
|
|
<MdiReload v-if="isLoading" :class="{ 'animate-infinite animate-spin text-gray-500': isLoading }" /> |
|
|
|
|
|
|
|
<a-button class="ml-2" @click="onGetCurrentLocation">Your Location</a-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
<a-form-item class="buttons"> |
|
|
|
<a-form-item class="buttons"> |
|
|
|
<a-button type="text" @click="clear">Cancel</a-button> |
|
|
|
<a-button type="text" @click="clear">Cancel</a-button> |
|
|
@ -111,10 +141,6 @@ input[type='number']:focus { |
|
|
|
width: 180px; |
|
|
|
width: 180px; |
|
|
|
margin-right: 0.5rem; |
|
|
|
margin-right: 0.5rem; |
|
|
|
} |
|
|
|
} |
|
|
|
.location { |
|
|
|
|
|
|
|
margin-right: 0.5rem; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.buttons { |
|
|
|
.buttons { |
|
|
|
margin-left: auto; |
|
|
|
margin-left: auto; |
|
|
|
margin-bottom: 0; |
|
|
|
margin-bottom: 0; |
|
|
|