(field: string)
| 123 | * @author: 白雾茫茫丶 |
| 124 | */ |
| 125 | export const flagColumn = (field: string): ProColumns => { |
| 126 | return { |
| 127 | title: <FormattedMessage id={formatPerfix(ROUTES.MENUMANAGEMENT, field)} />, |
| 128 | dataIndex: field, |
| 129 | ellipsis: true, |
| 130 | hideInSearch: true, |
| 131 | width: 100, |
| 132 | align: 'center', |
| 133 | render: (_, record) => ( |
| 134 | <Tag color={randomTagColor()}> |
| 135 | {get(find(FLAG_OPTS, { value: record[field] }), 'label', '--')} |
| 136 | </Tag> |
| 137 | ), |
| 138 | }; |
| 139 | }; |
| 140 | |
| 141 | /** |
| 142 | * @description: 渲染表单标题 |
no test coverage detected