| | |
| | | <nut-input |
| | | class="nut-input-text bole-input-text" |
| | | type="text" |
| | | input-align="right" |
| | | :input-align="props.inputAlign" |
| | | readonly |
| | | @click="handleChooseLocation" |
| | | :modelValue="props.modelValue.address" |
| | |
| | | |
| | | type Props = { |
| | | modelValue: WeMapModel; |
| | | inputAlign: 'left' | 'center' | 'right'; |
| | | }; |
| | | |
| | | const props = defineProps<Props>(); |
| | | const props = withDefaults(defineProps<Props>(), { |
| | | inputAlign: 'right', |
| | | }); |
| | | |
| | | const emit = defineEmits<{ |
| | | (e: 'update:modelValue', value: Props['modelValue']): void; |
| | |
| | | cityCode: findAreaCodeFromName(cityName), |
| | | countyCode: findAreaCodeFromName(countyName), |
| | | address: res.address, |
| | | addressName: res.name, |
| | | }); |
| | | }, |
| | | }); |