Skip to content

Commit 530107e

Browse files
AK47-dadadagitee-org
authored andcommitted
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 <[email protected]>
1 parent 948ef08 commit 530107e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types/descriptions.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export interface DescriptionsSchema {
22
span?: number // 占多少分
33
field: string // 字段名
44
label?: string // label名
5+
mappedField?: string // 字段映射
56
width?: string | number
67
minWidth?: string | number
78
align?: 'left' | 'center' | 'right'

0 commit comments

Comments
 (0)