refactor(web): 优化用户对话框字段布局
- 调整角色和账号状态字段的布局方式 - 增加 control 组件以改善字段显示效果 - 在 constants.js 中添加 label属性以支持新布局
This commit is contained in:
@@ -131,6 +131,7 @@ export function copyField(field, label, tips = '复制', ignoreLength = 0, extra
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
name: field,
|
name: field,
|
||||||
|
label: label,
|
||||||
type: 'wrapper',
|
type: 'wrapper',
|
||||||
size: 'none',
|
size: 'none',
|
||||||
className: 'nowrap',
|
className: 'nowrap',
|
||||||
|
|||||||
@@ -16,8 +16,16 @@ const dialogBody = [
|
|||||||
{
|
{
|
||||||
type: 'group',
|
type: 'group',
|
||||||
body: [
|
body: [
|
||||||
mappingField('role', '角色', userRoleMapping),
|
{
|
||||||
mappingField('state', '账号状态', userStateMapping),
|
type: 'control',
|
||||||
|
label: '角色',
|
||||||
|
body: mappingField('role', '角色', userRoleMapping, 120),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'control',
|
||||||
|
label: '账号状态',
|
||||||
|
body: mappingField('state', '账号状态', userStateMapping),
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
...formCreatedUserAndModifiedUser(),
|
...formCreatedUserAndModifiedUser(),
|
||||||
|
|||||||
Reference in New Issue
Block a user