40 lines
631 B
TypeScript
40 lines
631 B
TypeScript
export const columns = [
|
|
{
|
|
dataIndex: 'id',
|
|
title: 'ID',
|
|
width: 80,
|
|
slotName: 'id',
|
|
},
|
|
{
|
|
dataIndex: 'name',
|
|
title: '名称',
|
|
width: 150,
|
|
},
|
|
{
|
|
dataIndex: 'description',
|
|
title: '描述',
|
|
width: 200,
|
|
ellipsis: true,
|
|
tooltip: true,
|
|
},
|
|
{
|
|
dataIndex: 'enabled',
|
|
title: '启用状态',
|
|
width: 100,
|
|
slotName: 'enabled',
|
|
},
|
|
{
|
|
dataIndex: 'created_at',
|
|
title: '创建时间',
|
|
width: 180,
|
|
slotName: 'created_at',
|
|
},
|
|
{
|
|
dataIndex: 'actions',
|
|
title: '操作',
|
|
width: 180,
|
|
fixed: 'right' as const,
|
|
slotName: 'actions',
|
|
},
|
|
]
|