ant-design / ant-design/pro-components
🐛[BUG]EditableProTable组件,实时保存和有子列的情况下,dataSource更新后子列的input value不渲染
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
### 🐛 bug 描述
使用EditableProTable组件编写有子列的实时保存表格,dataSource更新后,首列的input value可以正常显示,但子列的input value不渲染。
### 📷 复现步骤
修改前的表格
修改前的dataSource
修改后打印dataSource,dataSource成功修改
子列的input value并没有成功渲染
### 🏞 期望结果
子列能获取到dataSource数据并正常渲染。
### 💻 复现代码
https://codesandbox.io/p/devbox/testing-gjt47v
### © 版本信息
- ProComponents 版本: "^2.7.14"
- 浏览器环境 chrome
- 开发环境 mac OS
### 🚑 其他信息
Contributor guide
Research direction
Start with the linked CodeSandbox reproduction and trace EditableProTable rendering when dataSource changes for tables with nested columns and real-time saving. Confirm the parent input updates while the child input does not, then verify that child inputs render the updated dataSource values after the fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100