From 0df6e2d32260a40902b2984880ffc9a7b112d105 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 29 十二月 2025 15:35:21 +0800
Subject: [PATCH] fix: bug

---
 packages/components/src/Input/ChooseLocationInput.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/packages/components/src/Input/ChooseLocationInput.vue b/packages/components/src/Input/ChooseLocationInput.vue
index d576d5e..d03c146 100644
--- a/packages/components/src/Input/ChooseLocationInput.vue
+++ b/packages/components/src/Input/ChooseLocationInput.vue
@@ -2,7 +2,7 @@
   <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"
@@ -16,7 +16,7 @@
     </template>
     <template #right>
       <slot name="right">
-        <img :src="IconLocation" class="choose-location-input-icon" />
+        <!-- <img :src="IconLocation" class="choose-location-input-icon" /> -->
       </slot>
     </template>
   </nut-input>
@@ -34,9 +34,12 @@
 
 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;
@@ -86,6 +89,7 @@
         cityCode: findAreaCodeFromName(cityName),
         countyCode: findAreaCodeFromName(countyName),
         address: res.address,
+        addressName: res.name,
       });
     },
   });

--
Gitblit v1.10.0