1,效果图 

Antd的table组件表格的序号自增 

2,实现方法

const columns = [
      {
        title: '序号',
        render:(text,record,index)=>`${index+1}`,
      },
      {
        title:'操作',
        dataIndex:'delete',
        key:'delete',
        render: (text,record) => (
          <span>
            <Link to={{ pathname : '/info/Edit' , query : { id : record.id }}}> 删除</Link>
          </span>
        ),

      },

    ];

 

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2021-06-08
  • 2021-05-02
  • 2021-11-15
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-20
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2021-09-24
  • 2021-07-20
相关资源
相似解决方案