-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- 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 -->