fix: 修改用户显示判断
parent
693042d2b3
commit
50f5fa1612
|
@ -158,13 +158,13 @@ export const formSchema: FormSchema[] = [
|
||||||
label: '用户名称',
|
label: '用户名称',
|
||||||
field: 'username',
|
field: 'username',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
dynamicDisabled: ({ values }) => values.id !== undefined
|
dynamicDisabled: ({ values }) => !!values.id
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '用户密码',
|
label: '用户密码',
|
||||||
field: 'password',
|
field: 'password',
|
||||||
component: 'InputPassword',
|
component: 'InputPassword',
|
||||||
ifShow: ({ values }) => values.id === undefined
|
ifShow: ({ values }) => !!!values.id
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '用户性别',
|
label: '用户性别',
|
||||||
|
|
Loading…
Reference in New Issue