antd table 可编辑表格⚠ Warning: columns.render return cell props is deprecated with perf issue,

⚠ Warning: columns.renderreturn cell props is deprecated with perf issue, please useonCell instead.

  • 官方回答:https://github.com/ant-design/ant-design/issues/33093
    const columns = [{
      dataIndex: 'name',
--    render: (val) => ({
--      props: { colSpan: 2 },//不要再render 里面写calspan/ rowspan
--      children: val,
--    });
++    onCell: (record) => ({ colSpan: 2 });
    }];

你可能感兴趣的:(issue,javascript,开发语言)