Skip to content

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

@varHarrie

Description

@varHarrie
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions