From bb371ca4e0809e6e8f1357469170050640281334 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期二, 30 十二月 2025 10:39:42 +0800
Subject: [PATCH] fix: bug
---
packages/components/src/Input/ChooseLocationInput.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/packages/components/src/Input/ChooseLocationInput.vue b/packages/components/src/Input/ChooseLocationInput.vue
index e139c62..019e2d6 100644
--- a/packages/components/src/Input/ChooseLocationInput.vue
+++ b/packages/components/src/Input/ChooseLocationInput.vue
@@ -2,10 +2,10 @@
<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"
+ :modelValue="props.modelValue.addressName"
alwaysEmbed
>
<template #clear>
@@ -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;
--
Gitblit v1.10.0