ant-design / ant-design/pro-components

🐛[BUG]EditableProTable组件,实时保存和有子列的情况下,dataSource更新后子列的input value不渲染

Open
#8,625 2 comments 0 reactions 0 assignees View on GitHub
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不渲染。

### 📷 复现步骤

修改前的表格
截屏2024-08-05 16 54 25

修改前的dataSource
截屏2024-08-05 16 55 07

修改后打印dataSource,dataSource成功修改
截屏2024-08-05 16 56 04

子列的input value并没有成功渲染
截屏2024-08-05 16 55 47

### 🏞 期望结果

子列能获取到dataSource数据并正常渲染。

### 💻 复现代码

https://codesandbox.io/p/devbox/testing-gjt47v

### © 版本信息

- ProComponents 版本: "^2.7.14"
- 浏览器环境 chrome
- 开发环境 mac OS

### 🚑 其他信息

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.