Skip to content

Form.Item.name 类型应该是 string | string[] #6893

@1729457433

Description

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

Version

3.2.20

Environment

Reproduction link

https://3x.antdv.com/components/form#api

Steps to reproduce

文档示例中Form.Item.name的值有string 和 string[]两种类型, 下方api文档中显示name支持的类型仅为string.

按照文档示例使用时,浏览器中会有[Vue warn]:
Invalid prop: type check failed for prop "name". Expected String with value "x1,x2", got Array

What is expected?

文档示例使用正确的写法,或者name声明支持现在的数组类型.

What is actually happening?

按照文档示例使用会产生过多的vue warn

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