2020
10-30
10-30
Antd的table组件表格的序号自增操作
1,效果图2,实现方法constcolumns=[{title:'序号',render:(text,record,index)=>`${index+1}`,},{title:'操作',dataIndex:'delete',key:'delete',render:(text,record)=>(<span><Linkto={{pathname:'/info/Edit',query:{id:record.id}}}>删除</Link></span>),},];补充知识:ant-design表格序号分页连续自增设置1、预期效果2、设置表格的序号排序方式,我们首先是要到表格...
继续阅读 >