mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 02:35:18 +08:00
fix(demo): account page form validation
修复账号管理页面对不可见表单域的验证问题
This commit is contained in:
@@ -124,7 +124,7 @@ export const formSchema: FormSchema[] = [
|
|||||||
label: '图标',
|
label: '图标',
|
||||||
component: 'IconPicker',
|
component: 'IconPicker',
|
||||||
required: true,
|
required: true,
|
||||||
show: ({ values }) => !isButton(values.type),
|
ifShow: ({ values }) => !isButton(values.type),
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -132,19 +132,19 @@ export const formSchema: FormSchema[] = [
|
|||||||
label: '路由地址',
|
label: '路由地址',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
required: true,
|
required: true,
|
||||||
show: ({ values }) => !isButton(values.type),
|
ifShow: ({ values }) => !isButton(values.type),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'component',
|
field: 'component',
|
||||||
label: '组件路径',
|
label: '组件路径',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
show: ({ values }) => isMenu(values.type),
|
ifShow: ({ values }) => isMenu(values.type),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'permission',
|
field: 'permission',
|
||||||
label: '权限标识',
|
label: '权限标识',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
show: ({ values }) => !isDir(values.type),
|
ifShow: ({ values }) => !isDir(values.type),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'status',
|
field: 'status',
|
||||||
@@ -169,7 +169,7 @@ export const formSchema: FormSchema[] = [
|
|||||||
{ label: '是', value: '1' },
|
{ label: '是', value: '1' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
show: ({ values }) => !isButton(values.type),
|
ifShow: ({ values }) => !isButton(values.type),
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -183,7 +183,7 @@ export const formSchema: FormSchema[] = [
|
|||||||
{ label: '是', value: '1' },
|
{ label: '是', value: '1' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
show: ({ values }) => isMenu(values.type),
|
ifShow: ({ values }) => isMenu(values.type),
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -197,6 +197,6 @@ export const formSchema: FormSchema[] = [
|
|||||||
{ label: '否', value: '1' },
|
{ label: '否', value: '1' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
show: ({ values }) => !isButton(values.type),
|
ifShow: ({ values }) => !isButton(values.type),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user