const columns = [
{
title: '名称',
dataIndex: 'name',
},
{
title: '操作',
dataIndex: 'action',
customRender: (text, record, index) => {
return (
<a onClick={() => this.handle(record)}>
查看
</a>
);
}
}
]
<a-table
bordered
pagination={this.pagination}
columns={this.columns}
data-source={this.dataList}
rowKey={(record, index) => { return index }}
>
</a-table>