From 06e15e3c0dd3514d624bacbe0d6313ac30eba3cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Mon, 14 Oct 2024 14:39:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=20=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/baseinfo/clientflowtemplate/columns.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/views/baseinfo/clientflowtemplate/columns.tsx b/src/views/baseinfo/clientflowtemplate/columns.tsx index c2d11516..8bc7326b 100644 --- a/src/views/baseinfo/clientflowtemplate/columns.tsx +++ b/src/views/baseinfo/clientflowtemplate/columns.tsx @@ -92,17 +92,16 @@ export const formSchema: FormSchema[] = [ { field: 'status', label: '是否启用', - component: 'RadioButtonGroup', - defaultValue: 1, - colProps: { span: 12 }, + component: 'Switch', + colProps: { span: 6 }, + defaultValue: 0, componentProps: { - options: [ - { label: '是', value: 0 }, - { label: '否', value: 1 }, - ], + checkedChildren: '启用', + checkedValue: 0, + unCheckedChildren: '禁用', + unCheckedValue: 1, }, }, - { field: 'columnView', label: '关联表',