Tencent / Tencent/tdesign-react
[Form] setFields函数的参数{name: }不能以数组下标作为路径
Open
Nobody has claimed this yet.
💪🏻 enhancement
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
这个功能解决了什么问题
使setFields函数能够通过数组下标单独修改数组中对应项
你建议的方案是什么
数组下标加入路径识别
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Form component's setFields entry point and its handling of the name path. Check how array fields are represented and whether related tests cover nested paths. Done means setFields can use an array index in name to update only the corresponding item.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100