Skip to content

Select组件值问题 出现警告 造成卡顿 警告内容太多。造成控制台卡顿浏览器卡死 #2912

@anncwb

Description

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

Version

2.0.0-beta.10

Environment

vite jsx

Reproduction link

https://vuecomponent.github.io/issue-helper/

Steps to reproduce

在jsx内使用Select组件时候,采用 options传递下拉值,会报警告
警告出现的时机是点击后下拉出来报的

// 传这样会报警告
options: [
{
label: '选项1',
value: '1',
},
{
label: '选项2',
value: '2',
},
],

// 传这样会则不会需要加key属性,但是以前的写法是不用的。2.0改了吗 xuyao
options: [
{
label: '选项1',
value: '1',
key: '1',
},
{
label: '选项2',
value: '2',
key: '2',
},
],


// 主要的警告信息

[VueTypes warn]: oneOfType - value "null" should be of type "String or Number"
runtime-dom.esm-bundler-23302e7d.js:1180 [Vue warn]: Invalid prop: custom validator check failed for prop "selectedKeys".



### What is expected?
删除警告

### What is actually happening?
出现警告 造成卡顿 警告内容太多。造成控制台卡顿



        

<!-- generated by issue-helper. DO NOT REMOVE -->

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