- 每一页都从1开始
- 分页连续自增序号
const columns = [
{
title: ' 序号 ',
// render: (text, record, index) => `${index + 1}`, //每一页都从1开始
render:(text, record, index) =>
`${(pagination.current - 1) * (pagination.pageSize) + (index + 1)}`
//当前页数减1乘以每一页页数再加当前页序号+1
},
{
title: ' 名称 ',
dataIndex: 'name',
key: 'name',
},