30 lines
647 B
TypeScript
30 lines
647 B
TypeScript
|
import { Space } from 'antd';
|
||
|
import { ColumnsType } from 'antd/es/table';
|
||
|
|
||
|
export default [
|
||
|
{
|
||
|
title: '姓名',
|
||
|
dataIndex: 'name',
|
||
|
key: 'name',
|
||
|
},
|
||
|
{
|
||
|
title: '年龄',
|
||
|
dataIndex: 'age',
|
||
|
key: 'age',
|
||
|
},
|
||
|
{
|
||
|
title: '地址',
|
||
|
dataIndex: 'address',
|
||
|
key: 'address',
|
||
|
},
|
||
|
{
|
||
|
title: 'Action',
|
||
|
key: 'action',
|
||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||
|
render: (_, record) => (
|
||
|
<Space size="middle" >
|
||
|
< a > Delete </a>
|
||
|
</Space>
|
||
|
),
|
||
|
},
|
||
|
] as ColumnsType<unknown>;
|