Skip to content

Treeselect can no longer use validation rules in the frommodel form. #4340

@apgk

Description

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

Version

1.7.3

Environment

win7 64位 Chrome 90 vue (antd 1.7.6)

Reproduction link

https://www.antdv.com/components/tree-select-cn/

Steps to reproduce

1.我使用 frommodel 表单 内部放置了 treeselect (CompanyId)
代码如下:

2.rules 内配置了CompanyId:[{required:true,message:'必填项'}]
打开页面是无效 所属单位前面无 必填项 红色* ,且提交时 校验未生效
3.如果手动在 from-item 上增加 :reqiured='true' 那么 label 会出现 红色 * 校验规则还是无效。

What is expected?

校验规则可以使用

What is actually happening?

校验规则对 treeselect 无效

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