From d04c0c4e6c3aec60e393a853dd8aafd3cfb3ce40 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Wed, 30 Oct 2024 14:22:07 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/system/notice/data.ts | 6 ++---- apps/web-antd/src/views/system/notice/notice-modal.vue | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/web-antd/src/views/system/notice/data.ts b/apps/web-antd/src/views/system/notice/data.ts index 608ba3ab..f814c3c1 100644 --- a/apps/web-antd/src/views/system/notice/data.ts +++ b/apps/web-antd/src/views/system/notice/data.ts @@ -86,7 +86,6 @@ export const modalSchema: FormSchemaGetter = () => [ { component: 'Input', fieldName: 'noticeTitle', - formItemClass: 'col-span-2', label: '公告标题', rules: 'required', }, @@ -94,7 +93,6 @@ export const modalSchema: FormSchemaGetter = () => [ component: 'RadioGroup', componentProps: { buttonStyle: 'solid', - class: 'grid-cols-2', options: getDictOptions(DictEnum.SYS_NOTICE_STATUS), optionType: 'button', }, @@ -102,12 +100,12 @@ export const modalSchema: FormSchemaGetter = () => [ fieldName: 'status', label: '公告状态', rules: 'required', + formItemClass: 'col-span-1', }, { component: 'RadioGroup', componentProps: { buttonStyle: 'solid', - class: 'grid-cols-2', options: getDictOptions(DictEnum.SYS_NOTICE_TYPE), optionType: 'button', }, @@ -115,6 +113,7 @@ export const modalSchema: FormSchemaGetter = () => [ fieldName: 'noticeType', label: '公告类型', rules: 'required', + formItemClass: 'col-span-1', }, { component: 'RichTextarea', @@ -122,7 +121,6 @@ export const modalSchema: FormSchemaGetter = () => [ width: '100%', }, fieldName: 'noticeContent', - formItemClass: 'col-span-2', label: '公告内容', rules: 'required', }, diff --git a/apps/web-antd/src/views/system/notice/notice-modal.vue b/apps/web-antd/src/views/system/notice/notice-modal.vue index d220bc93..d502f69f 100644 --- a/apps/web-antd/src/views/system/notice/notice-modal.vue +++ b/apps/web-antd/src/views/system/notice/notice-modal.vue @@ -19,6 +19,10 @@ const title = computed(() => { const [BasicForm, formApi] = useVbenForm({ layout: 'vertical', + commonConfig: { + formItemClass: 'col-span-2', + labelWidth: 100, + }, schema: modalSchema(), showDefaultActions: false, wrapperClass: 'grid-cols-2',