Table表格中名称这一列自定义渲染内容,sorter设为true可排序,dataIndex为空;点击排序后这一列无法进行排序 ,参数都没有 。dataIndex:‘name’后又会报错{title: '名称’,dataIndex: '',sorter: true,render: (text) => {const name = text.name ==null ? <span>已删除</span> : text.name;return name;}
添加回答
举报
0/150
提交
取消