update src/types/descriptions.d.ts.
此处添加了字段映射字段,方便在description在展示的时候减少slot的使用使用方式如下
// 确认人 confirmUser
{
label: '确认人',
field: 'confirmUser',
minWidth: 120,
isForm: false,
isDetail: true,
detail: {
mappedField: 'confirmUserName'
}
},
Signed-off-by: AKING <2734339436@qq.com>
pull/371/head
parent
948ef08533
commit
530107eba7
|
|
@ -2,6 +2,7 @@ export interface DescriptionsSchema {
|
|||
span?: number // 占多少分
|
||||
field: string // 字段名
|
||||
label?: string // label名
|
||||
mappedField?: string // 字段映射
|
||||
width?: string | number
|
||||
minWidth?: string | number
|
||||
align?: 'left' | 'center' | 'right'
|
||||
|
|
|
|||
Loading…
Reference in New Issue