直接上代码:
const columns = [
{
title: '序号',
dataIndex: 'index',
render:(text,record,index)=>`${index+1}`,
},
//...
];
直接上代码:
const columns = [
{
title: '序号',
dataIndex: 'index',
render:(text,record,index)=>`${index+1}`,
},
//...
];