Skip to content

@idealworld/task-table v0.1.0-beta.1 / IwProps / DATA_DICT_POSTFIX

Variable: DATA_DICT_POSTFIX

const DATA_DICT_POSTFIX: "__dict" = '__dict'

数据字典的列名后缀

Column name suffix of data dictionary

当某列为字典时 TableColumnProps#useDict 要求所回的数据加上带此后缀的列,存放字典项数据 DictItemProps

When a column is a dictionary, TableColumnProps#useDict requires that the returned data be added to the column with this suffix, storing dictionary item data DictItemProps.

Example

ts
const rowData = {
  creator: 'xh',                               // Original field
  crattor__dict: {                             // Additional field
    title: '星航',
    value: 'xh',
    avatar: 'https://xxxx/xxx.png'
  },
  ...
}

Defined in

props/enumProps.ts:30