From e67a78e971dd63b7b791a0a78ee96e621b3d8c49 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Thu, 12 Sep 2024 21:56:21 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/system/config/config-modal.vue | 7 ++++++- apps/web-antd/src/views/system/config/data.ts | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/views/system/config/config-modal.vue b/apps/web-antd/src/views/system/config/config-modal.vue index a8fdddd9..afb4ac03 100644 --- a/apps/web-antd/src/views/system/config/config-modal.vue +++ b/apps/web-antd/src/views/system/config/config-modal.vue @@ -22,6 +22,9 @@ const title = computed(() => { }); const [BasicForm, formApi] = useVbenForm({ + commonConfig: { + labelWidth: 80, + }, schema: modalSchema(), showDefaultActions: false, }); @@ -34,6 +37,7 @@ const [BasicModal, modalApi] = useVbenModal({ if (!isOpen) { return null; } + modalApi.modalLoading(true); const { record, update } = modalApi.getData() as ModalProps; isUpdate.value = update; if (update && record) { @@ -41,6 +45,7 @@ const [BasicModal, modalApi] = useVbenModal({ await formApi.setFieldValue(key, record[key]); } } + modalApi.modalLoading(false); }, }); @@ -70,7 +75,7 @@ async function handleCancel() { diff --git a/apps/web-antd/src/views/system/config/data.ts b/apps/web-antd/src/views/system/config/data.ts index 8fd1fcb6..f933e723 100644 --- a/apps/web-antd/src/views/system/config/data.ts +++ b/apps/web-antd/src/views/system/config/data.ts @@ -59,6 +59,7 @@ export const modalSchema: FormSchemaGetter = () => [ placeholder: '请输入', }, fieldName: 'remark', + formItemClass: 'items-baseline', label: '备注', }, ];