Tencent / Tencent/tdesign-flutter
[form] form组件表单校验可以通过返回string来显示不同的错误校验么
Open
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.2k
- Forks
- 182
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 88
Description
这个功能解决了什么问题
请问form表单中可以实现单个项的表单校验可以返回list实现不同的错误提示,或者validate可以通过返回不同的String来显示不同的表单校验么
你建议的方案是什么
可以通过不同的条件分支,返回不同的表单校验错误提示
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 reviewing the form component's validation API and the validate behavior described in the issue. Determine how a single field currently reports validation failures, then define how conditional validation messages or multiple errors should be represented and verify the behavior with the form component's existing validation coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100