Tencent / Tencent/tdesign-react
[FormList] 能否支持对于FormList本身的校验
Open
Nobody has claimed this yet.
💭 discussion
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
这个功能解决了什么问题
对于一个动态增减嵌套表单,如果要对与FormList本身进行校验该怎么做呢,我这里写了一个demo但是没有效果,请问目前是否有这个功能,如果有的话能否指导一下如何写,如果没有的话能否添加这个功能
demo的地址 https://stackblitz.com/edit/react-h4zdyq?file=src%2Fdemo.tsx
类似的antd的写法 https://stackblitz.com/edit/react-h4zdyq?file=src%2Fdemo.tsx
你建议的方案是什么
添加对FormList校验的方法
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 with the linked StackBlitz example at src/demo.tsx and compare its attempted FormList validation with the described antd behavior. Clarify the desired FormList-level validation API, then verify that validation works for dynamically added and removed nested form items in the demo.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100