Browse Source

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>

AKING 1 year ago
parent
commit
530107eba7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/types/descriptions.d.ts

+ 1 - 0
src/types/descriptions.d.ts

@@ -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'