Skip to content

feat: form-model add validateMessages prop #2130

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

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

varHarrie
Copy link
Contributor

首先,感谢你的贡献! 😄

新特性请提交至 feature 分支,其余可提交至 master 分支。在一个维护者审核通过后合并。请确保填写以下 pull request 的信息,谢谢!~

[English Template / 英文模板]

这个变动的性质是

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 组件样式改进
  • TypeScript 定义更新
  • 重构
  • 代码风格优化
  • 分支合并
  • 其他改动(是关于什么的改动?)

需求背景

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

实现方案和 API(非新功能可选)

FormModel接受validateMessages属性,通过provide/inject传入FormModelItem的AsyncValidator。

对用户的影响和可能的风险(非新功能可选)

无影响。

Changelog 描述(非新功能可选)

  1. 英文描述
    The FormModel component adds validateMessages property.
  2. 中文描述(可选)
    FormModel组件添加validateMessages属性。

请求合并前的自查清单

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

后续计划(非新功能可选)

如果这个提交后面还有相关的其他提交和跟进信息,可以写在这里。

@varHarrie varHarrie marked this pull request as ready for review April 21, 2020 12:11
@tangjinzhou tangjinzhou merged commit 39bf296 into vueComponent:master Apr 22, 2020
zhoudewei2526 pushed a commit to zhoudewei2526/ant-design-vue that referenced this pull request Apr 23, 2020
@github-actions
Copy link

This pull request 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 Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants