Skip to content

FormModel提供一种设置validate messages的方式 #2041

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

Closed
1 task done
varHarrie opened this issue Apr 9, 2020 · 1 comment
Closed
1 task done

FormModel提供一种设置validate messages的方式 #2041

varHarrie opened this issue Apr 9, 2020 · 1 comment
Labels

Comments

@varHarrie
Copy link
Contributor

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Form组件提供了validateMessages参数来覆盖async-validator的messages,但FormModel组件没有相关的参数或配置方式。

What does the proposed API look like?

FormModel组件添加validateMessages参数,通过provide传递给FormModelItem的validator。
https://github.com/vueComponent/ant-design-vue/blob/master/components/form-model/FormItem.jsx#L144

@github-actions
Copy link

github-actions bot commented May 1, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants