【antd_react】Table 表格组件序号递增

【antd_react】Table 表格组件序号递增

const { current, pageSize } = pagination; // current: 当前页, pageSize: 每页条数
const columns = [
	{
		title: '序号',
		render: (text, _, index) => (current - 1) * pageSize + index + 1 || index + 1,
	}
]

你可能感兴趣的:(react,react.js,前端,javascript)