【发布时间】:2021-02-13 19:35:21
【问题描述】:
我想在 ant design table 中显示行索引。例如:我得到的 10 行数据为 1 到 10。
const columns = [{
title: 'ID',
dataIndex: 'id',
key: 'id',
width: '5%'
},
...
];
<Table key="table" columns={columns} dataSource={listData} pagination= {false} />
【问题讨论】:
标签: reactjs react-native ant-design-pro