ant-design / ant-design/pro-components
🐛[BUG] 可编辑表格使用renderFormItem时,第二个参数无法获取最新行值
- 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 描述
在使用可编辑表格时,有一项是选择框,另外一项根据前面选择的内容进行判断渲染内容,所以使用renderFormItem进行自定义渲染,在renderFormItem接收的第二个参数中,可以通过record获取到前面选择的值,但是record接收到的值总是比前面选择的值慢一拍。
### 📷 复现步骤
### 🏞 期望结果
选择框选择内容后,后面一项renderFormItem能够及时接收到最新的变化值。
### 💻 复现代码
### © 版本信息
- ProComponents 版本: [e.g. 2.7.0]
- umi 版本 4.1.2
- 浏览器环境 chrome
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start at the editable table entry point that implements renderFormItem and reproduce the delayed record update with two dependent fields. Confirm that changing the select makes the following renderFormItem receive the latest row value; the issue provides no reproduction code, named file, or test to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100