From ddddcf83e7deb9d0a674d2bbead300089530d87e Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 21 五月 2025 13:24:07 +0800 Subject: [PATCH] feat: UI --- packages/components/src/views/userAccount/EditGasUserAccount.vue | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/packages/components/src/views/userAccount/EditGasUserAccount.vue b/packages/components/src/views/userAccount/EditGasUserAccount.vue index 91f751e..1e94383 100644 --- a/packages/components/src/views/userAccount/EditGasUserAccount.vue +++ b/packages/components/src/views/userAccount/EditGasUserAccount.vue @@ -13,13 +13,16 @@ </NutFormItem> </template> <NutFormItem label="澶囨敞淇℃伅" class="bole-form-item" prop="remark"> - <NutInput - v-model.trim="form.remark" - class="bole-input-text" + <NutTextarea placeholder="璇疯緭鍏ュ娉ㄤ俊鎭�" - type="text" - max-length="30" - /> + placeholderClass="bole-input-text-placeholder" + autoSize + class="bole-input-textarea" + v-model="form.remark" + :max-length="30" + limit-show + > + </NutTextarea> </NutFormItem> <div class="common-content"> <NutButton class="recharge-button" type="primary" @click="handleSave"> @@ -34,7 +37,7 @@ <script setup lang="ts"> import GasBillRechargeBaseForm from '../GasBillRecharge/GasBillRechargeBaseForm.vue'; -import { Button as NutButton } from '@nutui/nutui-taro'; +import { Button as NutButton, Textarea as NutTextarea } from '@nutui/nutui-taro'; import { reactive, ref, computed } from 'vue'; import { useLifeRechargeContext, @@ -84,6 +87,7 @@ form.gasOrgType = data.operators as any; form.remark = data.remark; + form.name = currentUserAccountExtraProperties.name ?? ''; }, enabled: computed(() => !!props.id), }); @@ -95,6 +99,7 @@ gasAccount: '', remark: '', areaList: [] as string[], + name: '', }); const formRef = ref<any>(null); -- Gitblit v1.9.1