From 4f52b02ee2db3a9a3b00411b2a1ebfc8eb8c5a7c Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 17 九月 2025 14:04:38 +0800 Subject: [PATCH] fix: bug --- packages/components/src/Input/ChooseLocationInput.vue | 7 +++++-- apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue b/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue index 8ece015..d2e31d8 100644 --- a/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue +++ b/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue @@ -124,7 +124,11 @@ prop="weMapInfo" required > - <ChooseLocationInput placeholder="璇烽�夋嫨浠诲姟鍦扮偣" v-model="form.weMapInfo" /> + <ChooseLocationInput + inputAlign="left" + placeholder="璇烽�夋嫨浠诲姟鍦扮偣" + v-model="form.weMapInfo" + /> </nut-form-item> <nut-form-item label="璇︾粏鍦板潃:" diff --git a/packages/components/src/Input/ChooseLocationInput.vue b/packages/components/src/Input/ChooseLocationInput.vue index e139c62..968d011 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" @@ -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.9.1