tdesign-react icon indicating copy to clipboard operation
tdesign-react copied to clipboard

[Table] Table 组件标记为 edit 的列,无法外部置入数据

Open DevQiao opened this issue 1 year ago • 3 comments

tdesign-react 版本

1.4.0

重现链接

https://stackblitz.com/edit/react-j3mxaf?file=src%2Fdemo.jsx

重现步骤

将 Table 的 columns 标记为 edit (提供 edit 字段),使其可以编辑,外部重置表格数据 setData,edit 的列UI变不了,没有 edit 的列功能正常

期望结果

外部置入数据跟 edit 与否无关,edit 状态的 column 同样需要外部受控

实际结果

标记为 edit 的 column 外部受控数据置入,但是 UI 没有同步更新

框架版本

React 16.14

浏览器版本

No response

系统版本

Windows 10

Node版本

14.21.3

补充说明

常见场景:编辑表格后,需要回退表格原始数据,遂重新 set 初始化 data,但是 edit 列和非 edit 列表现不一致,导致功能错误

DevQiao avatar Dec 22 '23 01:12 DevQiao

👋 @DevQiao,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

github-actions[bot] avatar Dec 22 '23 01:12 github-actions[bot]

♥️ 有劳 @yunfeic @tengcaifeng @Yacent @basecss 尽快确认问题。 确认有效后将下一步计划和可能需要的时间回复给 @DevQiao 。

github-actions[bot] avatar Dec 22 '23 01:12 github-actions[bot]

预计明后天处理

chaishi avatar Dec 22 '23 03:12 chaishi