Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DevQiao opened this issue Dec 22, 2023 · 3 comments
Open

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

DevQiao opened this issue Dec 22, 2023 · 3 comments
Assignees

Comments

@DevQiao
Copy link

DevQiao commented Dec 22, 2023

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 列表现不一致,导致功能错误

Copy link
Contributor

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

Copy link
Contributor

github-actions bot commented Dec 22, 2023

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

@chaishi
Copy link
Collaborator

chaishi commented Dec 22, 2023

预计明后天处理

@uyarn uyarn changed the title [Table] Critical Bug !! Table 组件标记为 edit 的列,无法外部置入数据 [Table] Table 组件标记为 edit 的列,无法外部置入数据 Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants