proComponents EditableProTable 只能新增一行

发布时间 2023-06-14 16:05:04作者: Yseraaa

在实时保存模式下,实现复制功能,复制一条后会出现“只能新增一行”的提示

 actionRef.current?.addEditRecord?.({
              id: (Math.random() * 1000000).toFixed(0),
              title: '新的一行',
    });
 actionRef.current?.addEditRecord?.({
              id: (Math.random() * 1000000).toFixed(0),
              title: '新的一行',
            }, {  newRecordType: 'dataSource' });

要加上newRecordType