Tencent / Tencent/tdesign-flutter

[form] form组件表单校验可以通过返回string来显示不同的错误校验么

Open
#883 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.