Commit 7b924d4e9f359cb7c28f7a99281c5f15ae35028f

Authored by ww
1 parent e4c198a7

perf: deivce list default configuration field use Tag component to render

... ... @@ -261,12 +261,14 @@ export const columns: BasicColumn[] = [
261 261 title: '默认配置',
262 262 dataIndex: 'default',
263 263 width: 80,
264   - format: (text) => (text ? '是' : '否'),
  264 + customRender: ({ text }) =>
  265 + text ? h(Tag, { color: 'blue' }, () => '是') : h(Tag, { color: 'red' }, () => '否'),
265 266 },
266 267 {
267 268 title: '描述',
268 269 dataIndex: 'description',
269 270 width: 90,
  271 + ellipsis: true,
270 272 },
271 273 {
272 274 title: '创建时间',
... ...