Open Sara2009 opened 3 years ago
⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.
设置列属性名称为可编辑的,这个时候如果设置rowKey,会有bug
export function getBasicColumns(): BasicColumn[] { return [ { title: 'ID', dataIndex: 'taskId', width: 200, }, { title: '名称', dataIndex: 'taskName', edit: true, width: 200, }, { title: '准确率', dataIndex: 'accuracy', width: 200, }, { title: '开始时间', width: 300, dataIndex: 'startTs', }, { title: '结束时间', width: 300, dataIndex: 'endTs', }, { title: '状态', dataIndex: 'status', }, ]; } // setup const [registerTable, { getSelectRowKeys, getSelectRows }] = useTable({ title: '数据列表', columns: getBasicColumns(), bordered: true, dataSource: props.dataset, canResize: false, pagination: { total: props.total, defaultPageSize: props.pageSize, }, showIndexColumn: false, rowKey: 'taskId', rowSelection: { type: 'checkbox', }, actionColumn: { width: 250, title: '操作', dataIndex: 'action', slots: { customRender: 'action' }, }, });
Please describe the steps of the problem in detail to ensure that we can restore the correct problem
⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.
Describe the bug
设置列属性名称为可编辑的,这个时候如果设置rowKey,会有bug
Reproduction
Please describe the steps of the problem in detail to ensure that we can restore the correct problem
System Info