Vue 完整警告信息:

`(Emitted value instead of an instance of Error) the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5. The n
ot-scope" attribute can also be used on plain elements in addition to <template> to denote scoped slots.`

造成原因:

scope 属性在2.5以后的版本中已经废弃, 被 slot-scope 替代

办法解决:

检查下你的列表组件里,slot 里的 <template> 上面有个 scope 属性,你改成 slot-scope.

                    <el-table-column label="操作"><template slot="scope"><el-button type="primary" size="mini" @click="toEdit(scope.$index, scope.row)">编辑</el-button><el-button type="primary" size="mini" @click="deleteAdmin(scope.$index, scope.row)">删除</el-button></template></el-table-column>

改成

                        <el-table-column label="操作"><template slot-scope="scope"><el-button type="primary" size="mini" @click="toEdit(scope.$index, scope.row)">编辑</el-button><el-button type="primary" size="mini" @click="deleteAdmin(scope.$index, scope.row)">删除</el-button></template></el-table-column>

Vue 项目提示:`(Emitted value instead of an instance of Error) the “scope“ attribute for scoped slots相关推荐

  1. Vue启动项目出现警告Emitted value instead of an instance of Error the scope attribute for scoped slots have

    启动Vue项目时可以正常启动,但是报出一个警告.      解决方法:根据警告的信息按照路径,找到出现警告的文件Table.vue,依据下面的信息,将scope属性替换成slot-scope,scop ...

  2. Vue解决warning Emitted value instead of an instance of Error

    避免Emitted value instead of an instance of Error, 这部分在运行的时候就会出现问题 <el-submenu v-for="(item,in ...

  3. VUE解决warning(Emitted value instead of an instance of Error) el-table-column v-for=item in batch问题

    报警告之前 <el-table-column :label="item" v-for="(item,index) in batchs" >     ...

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

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

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

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

  6. vue启动报错 Emitted value instead of an instance of Error

    vue项目install正常,npm run dev启动时因为警告导致项目不能启动. 异常提示: (Emitted value instead of an instance of Error)< ...

  7. (Emitted value instead of an instance of Error) postcss-viewport-units:

    报错信息: (Emitted value instead of an instance of Error) postcss-viewport-units: '.mint-switch-core::af ...

  8. Emitted value instead of an instance of Error) <v-uni-view v-for=“item in pi

    问题一 Emitted value instead of an instance of Error) <v-uni-view v-for="item in pi A:这个报错主要是v- ...

  9. (Emitted value instead of an instance of Error)

    本地运行vue项目因为警告导致 不能启动 (Emitted value instead of an instance of Error) Do not use v-for index as key o ...

最新文章

  1. ORACLE 效率测试小工具 Runstats
  2. 深入理解Linux异步I/O框架 io_uring
  3. react学习(31)----react父传子
  4. NeuChar 平台使用及开发教程 索引
  5. python读取json数据教程_Python教程之解析json数据
  6. struts中action名称反复导致的神秘事件
  7. Java操作文件夹的工具类
  8. 数据库热备之SQLServer的数据库镜像实施笔记
  9. ubuntu使用笔记
  10. XILINX FPGA数字信号处理——3、数字的表示和运算的实现
  11. AFM测试探针简介-科学指南针
  12. 车站订票系统可行性分析报告
  13. 你好!Docker【概念+源码+保姆式教程】
  14. [转]为ERP的定义“拨乱反正”
  15. 怎么修改设置路由器默认密码
  16. 纯Javascript的输入框掩码
  17. 20145206邹京儒问卷调查
  18. mysql一行受影响是什么意思_行受影响 是什么意思
  19. Javascript 面向对象编程(一):封装 ——转自阮一峰博客
  20. Uni中城市列表选择包含高德城市编码

热门文章

  1. AWVS11安装、操作
  2. 按键精灵移动端系列 - IOS(苹果版)安装1.3.8 deb
  3. 视频直播app和网页版怎么开发?
  4. Win10系统磁盘扩展分区与恢复分区
  5. MySQL报错:Duplicate entry ‘xxx‘ for key ‘xxx‘
  6. 记一次阴阳师挂机脚本开发
  7. 「深度」规模仅为12亿元,充电桩建设真的是朝阳产业吗?
  8. css 实现心形加载动画
  9. 解读 Oracle 12c 自适应执行计划一例
  10. Postgresql逻辑复制报错could not start WAL streaming: ERROR: replication slot “x“is active for PID xxx