Skip to content

select options的value propType增加boolean类型 #971

@kotoyo1516

Description

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

Version

1.3.10

Environment

chrome vue最新版

Reproduction link

Edit on CodeSandbox

Steps to reproduce

将a-select的options设置为
[{ label: "是", value: true }, { label: "否", value: false }]

What is expected?

不出现warning

What is actually happening?

有waring提示:
[VueTypes warn]: oneOfType - value type should be one of "String", "Number", "Array", "Object"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions