2024-05-04 如何为antd的table设置序号
给columns加多一列即可:
const columns = [ { title: "序号", key: "index", render: (_, record, index) => index + 1, }, ... ]
如图:

给columns加多一列即可:
const columns = [ { title: "序号", key: "index", render: (_, record, index) => index + 1, }, ... ]
如图:
