react-component / react-component/field-form

如何获取 List 子字段的错误信息?

Open
#197 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1k
Forks
286
Avg merge
4d 16h
Merged PRs (30d)
1

Description

image

如何从 List 获取子字段的所有错误信息。现在通过 List 可以在子字段上显示错误信息,但有时为了页面美观想把所有的错误信息集中显示。请问这种情况如何实现?如图显示的效果。

Contributor guide

No contributing guide indexed for this repository

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

The issue names no file or test; start by locating the validation, List, and field-error APIs in the repository. Determine whether errors from List child fields can be collected for a central display, and define done as a documented or implemented way to produce the requested aggregated messages.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.