运行时出现警告:......component lists rendered with v-for should have explicit keys.

源代码:

 <a-select v-decorator="['name', validatorRules.name]" placeholder=" 请选择"@change="nameSelect"><a-select-option v-for="item in arr" :value="item.value">{{item.label}}</a-select-option>
</a-select>

原因:v-for="(item, index) in arr" :key="index"

 <a-select v-decorator="['name', validatorRules.name]" placeholder=" 请选择"@change="nameSelect"><a-select-option v-for="(item, index) in arr" :key="index" :value="item.value">       {{item.label}}</a-select-option>
</a-select>

component lists rendered with v-for should have explicit keys.相关推荐

  1. component lists rendered with v-for should have explicit keys

    出现这个报错的主要原因是  component lists rendered with v-for should have explicit keys 去官网看了下v-for,简单说就是有相同父元素的 ...

  2. Vue报错 component lists rendered with v-for should have explicit keys.

    1.源代码 2.改后的代码 编译成功 2.v-for指令: 1.用于展示列表数据 2.语法:v-for="(item, index) in xxx" :key="yyy& ...

  3. vue项目警告:Emitted value instead of an instance of Error

    一.问题描述 错误描述:翻译过来大概的意思就是缺少一个key,来指定相应的属性 warning in ./src/view/Index.vue (Emitted value instead of an ...

  4. (Emitted value instead of an instance of Error) <swiper-slide v-for=“img in allData.url“>: component

    (Emitted value instead of an instance of Error) : component lists rendered with v-for should have ex ...

  5. Vue v-on指令

    04v-on指令.html <!DOCTYPE html> <html><head><meta charset="UTF-8">&l ...

  6. 关于router-link包含dom元素会出现Warnings while compiling.警告的问题!

    做路由的时候,我突然有一个想法,这个<router-link></router-link>能不能不仅仅包文字,能不能包含dom元素呢?如果能包dom元素,那它都能包含什么dom ...

  7. 前端开发:Vue项目中解决Emitted value instead of an instance of Error问题

    分享一个在刚接触前端开发的开发者常遇到的一个经典错误,那就是在Vue项目运行中遇到Emitted value instead of an instance of Error的问题,附带解决该问题的方法 ...

  8. vue列表渲染中key的作用_列表渲染和Vue的v-for指令

    Web渲染是Web开发中最常用的实战之一.动态列表渲染通常用于简洁友好的格式向用户渲染一系列相似的分组信息.在我们使用的每个Web应用程序中,都可以看到很多内容列表被用于Web应用程序当中. 在这篇文 ...

  9. Vue 从零开始,项目搭建以及一些使用经验

    Vue 官方文档 : https://cn.vuejs.org/v2/guide/components.html 1.安装 node.js https://nodejs.org/zh-cn/ 2.[方 ...

  10. Emitted value instead of an instance of Error

    问题:(Emitted value instead of an instance of Error) <el-form-item v-for="item in fontItems&qu ...

最新文章

  1. JAVA多线程之Synchronized、wait、notify实例讲解
  2. ssh协议是osi_TCP/IP 协议模型
  3. 数字化如何影响药物开发
  4. 今天 CSDN 编辑器的一个惊人的变化
  5. 跟着老王学python
  6. Segmentation fault到底是何方妖孽
  7. 参数匹配顺序——Python学习之参数(三)
  8. #6278. 数列分块 2 分块 + 块内二分
  9. 不用电脑怎么设置苹果铃声_苹果手机怎么设置铃声?完整教程分享
  10. python输出进度条 tqdm_python-tqdm进度条
  11. VS2019 更新MSDN并创建快捷方式
  12. python webdriver save_Python + Selenium +Chrome 批量下载网页代码修改【新手必学】
  13. 开心网“卖身”:错过转型时机,逆水行舟,不进则退
  14. html MP4视频浏览器播放黑屏
  15. 企业微信自建应用审批接口开发
  16. [POI2010]PIL-Pilots
  17. warning: go env -w GO111MODULE=…does not override conflicting OS environment variable
  18. LaTeX soul包
  19. 【高项】十大管理部分:5*10*47 ITTO详表(含关键概念解释)
  20. helpinst.exe

热门文章

  1. Discuz! 6.x/7.x 全局变量防御绕过导致命令执行
  2. 基于51单片机的电子时钟(数码管显示)
  3. 基于HFSS的圆形左旋圆极化贴片天线仿真分析
  4. Thinkpad T420 Fn热键在Windows10中的解决方案
  5. ValueError: y contains previously unseen labels: ‘103125‘
  6. 印刷电路板丝网设计的十大技巧
  7. 地理信息系统GIS小结
  8. 小程序之视频卡顿问题
  9. html语言剖析十六 调色原理
  10. PFX文件解析及读取、写入、删除相关操作