Skip to content

Form组件中使用Select组件后,为Select组件增加校验规则后,Option组件的Key为Number类型时报错 #901

@MarbleShin

Description

@MarbleShin

The issue which is not created via https://vuecomponent.github.io/issue-helper/ will be closed immediately.


版本:1.3.9
报错:
image
使用场景:在Drawer组件中放置Form组件,然后使用Select组件作为数据输入,给Option组件设置的KeyValue都是Number类型的,Select组件又添加校验规则。然后选择Option后出现报错现象。将校验规则去除后,不报错;将Value显式转换成String类型传入也不报错。
代码:
image

注意:不是用 https://vuecomponent.github.io/issue-helper/http://ant-design-vue.gitee.io/issue-helper/ 创建的 issue 会被立即关闭。

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