-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[form] form 表单如何在自定义组件里面,获取errormessage, 希望有一个getFieldErrorMsg的功能 #2885
Labels
Comments
👋 @Lyrics1,感谢给 TDesign 提出了 issue。 |
moecasts
added a commit
that referenced
this issue
Nov 4, 2024
moecasts
added a commit
that referenced
this issue
Nov 4, 2024
moecasts
added a commit
that referenced
this issue
Nov 4, 2024
moecasts
added a commit
that referenced
this issue
Nov 4, 2024
16 tasks
moecasts
added a commit
that referenced
this issue
Nov 4, 2024
moecasts
added a commit
that referenced
this issue
Nov 14, 2024
uyarn
pushed a commit
that referenced
this issue
Nov 14, 2024
supported 1.10.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个功能解决了什么问题
定制化高的表单组件,需要根据业务错误信息展示的UI将会不一样,所以自定义组件中,可以先试用showErrorMessage:false 来禁用掉表单默认的错误展示位置,现在我想自己写一个错误信息展示的样式在组件中,如何获取对应组件name 的errorMessage?
你建议的方案是什么
form 属性中,新增一个getFieldErrorMsg的功能 默认true 返回所有的组件错误信息,这样用户可以根据错误信息来定制化错误提示展示样式
The text was updated successfully, but these errors were encountered: