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>
(cherry picked from commit 530107eba7
)
This commit is contained in:
parent
a1635da641
commit
5dc7f8b595
1
src/types/descriptions.d.ts
vendored
1
src/types/descriptions.d.ts
vendored
@ -2,6 +2,7 @@ export interface DescriptionsSchema {
|
|||||||
span?: number // 占多少分
|
span?: number // 占多少分
|
||||||
field: string // 字段名
|
field: string // 字段名
|
||||||
label?: string // label名
|
label?: string // label名
|
||||||
|
mappedField?: string // 字段映射
|
||||||
width?: string | number
|
width?: string | number
|
||||||
minWidth?: string | number
|
minWidth?: string | number
|
||||||
align?: 'left' | 'center' | 'right'
|
align?: 'left' | 'center' | 'right'
|
||||||
|
Loading…
Reference in New Issue
Block a user