Skip to content

Commit

Permalink
fix(demo): account page form validation
Browse files Browse the repository at this point in the history
修复账号管理页面对不可见表单域的验证问题
  • Loading branch information
mynetfan committed Jul 23, 2021
1 parent cebc6a5 commit 8702965
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/views/demo/system/menu/menu.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,27 +124,27 @@ export const formSchema: FormSchema[] = [
label: '图标',
component: 'IconPicker',
required: true,
show: ({ values }) => !isButton(values.type),
ifShow: ({ values }) => !isButton(values.type),
},

{
field: 'routePath',
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',
Expand All @@ -169,7 +169,7 @@ export const formSchema: FormSchema[] = [
{ label: '是', value: '1' },
],
},
show: ({ values }) => !isButton(values.type),
ifShow: ({ values }) => !isButton(values.type),
},

{
Expand All @@ -183,7 +183,7 @@ export const formSchema: FormSchema[] = [
{ label: '是', value: '1' },
],
},
show: ({ values }) => isMenu(values.type),
ifShow: ({ values }) => isMenu(values.type),
},

{
Expand All @@ -197,6 +197,6 @@ export const formSchema: FormSchema[] = [
{ label: '否', value: '1' },
],
},
show: ({ values }) => !isButton(values.type),
ifShow: ({ values }) => !isButton(values.type),
},
];

0 comments on commit 8702965

Please sign in to comment.