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
AKING 2024-01-22 01:40:08 +00:00 committed by Gitee
parent 948ef08533
commit 530107eba7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 0 deletions

View File

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