From 87029650570e470431fb94d35a273c5d07a73135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E6=9C=A8?= Date: Fri, 23 Jul 2021 09:57:42 +0800 Subject: [PATCH] fix(demo): account page form validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复账号管理页面对不可见表单域的验证问题 --- src/views/demo/system/menu/menu.data.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/demo/system/menu/menu.data.ts b/src/views/demo/system/menu/menu.data.ts index d424bc03a..834bd2117 100644 --- a/src/views/demo/system/menu/menu.data.ts +++ b/src/views/demo/system/menu/menu.data.ts @@ -124,7 +124,7 @@ export const formSchema: FormSchema[] = [ label: '图标', component: 'IconPicker', required: true, - show: ({ values }) => !isButton(values.type), + ifShow: ({ values }) => !isButton(values.type), }, { @@ -132,19 +132,19 @@ export const formSchema: FormSchema[] = [ label: '路由地址', component: 'Input', required: true, - show: ({ values }) => !isButton(values.type), + ifShow: ({ values }) => !isButton(values.type), }, { field: 'component', label: '组件路径', component: 'Input', - show: ({ values }) => isMenu(values.type), + ifShow: ({ values }) => isMenu(values.type), }, { field: 'permission', label: '权限标识', component: 'Input', - show: ({ values }) => !isDir(values.type), + ifShow: ({ values }) => !isDir(values.type), }, { field: 'status', @@ -169,7 +169,7 @@ export const formSchema: FormSchema[] = [ { label: '是', value: '1' }, ], }, - show: ({ values }) => !isButton(values.type), + ifShow: ({ values }) => !isButton(values.type), }, { @@ -183,7 +183,7 @@ export const formSchema: FormSchema[] = [ { label: '是', value: '1' }, ], }, - show: ({ values }) => isMenu(values.type), + ifShow: ({ values }) => isMenu(values.type), }, { @@ -197,6 +197,6 @@ export const formSchema: FormSchema[] = [ { label: '否', value: '1' }, ], }, - show: ({ values }) => !isButton(values.type), + ifShow: ({ values }) => !isButton(values.type), }, ];