Vue 项目提示:`(Emitted value instead of an instance of Error) the “scope“ attribute for scoped slots
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相关推荐
- Vue启动项目出现警告Emitted value instead of an instance of Error the scope attribute for scoped slots have
启动Vue项目时可以正常启动,但是报出一个警告. 解决方法:根据警告的信息按照路径,找到出现警告的文件Table.vue,依据下面的信息,将scope属性替换成slot-scope,scop ...
- Vue解决warning Emitted value instead of an instance of Error
避免Emitted value instead of an instance of Error, 这部分在运行的时候就会出现问题 <el-submenu v-for="(item,in ...
- 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" > ...
- 前端开发:Vue项目中解决Emitted value instead of an instance of Error问题
分享一个在刚接触前端开发的开发者常遇到的一个经典错误,那就是在Vue项目运行中遇到Emitted value instead of an instance of Error的问题,附带解决该问题的方法 ...
- vue项目警告:Emitted value instead of an instance of Error
一.问题描述 错误描述:翻译过来大概的意思就是缺少一个key,来指定相应的属性 warning in ./src/view/Index.vue (Emitted value instead of an ...
- vue启动报错 Emitted value instead of an instance of Error
vue项目install正常,npm run dev启动时因为警告导致项目不能启动. 异常提示: (Emitted value instead of an instance of Error)< ...
- (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 ...
- 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- ...
- (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 ...
最新文章
- ORACLE 效率测试小工具 Runstats
- 深入理解Linux异步I/O框架 io_uring
- react学习(31)----react父传子
- NeuChar 平台使用及开发教程 索引
- python读取json数据教程_Python教程之解析json数据
- struts中action名称反复导致的神秘事件
- Java操作文件夹的工具类
- 数据库热备之SQLServer的数据库镜像实施笔记
- ubuntu使用笔记
- XILINX FPGA数字信号处理——3、数字的表示和运算的实现
- AFM测试探针简介-科学指南针
- 车站订票系统可行性分析报告
- 你好!Docker【概念+源码+保姆式教程】
- [转]为ERP的定义“拨乱反正”
- 怎么修改设置路由器默认密码
- 纯Javascript的输入框掩码
- 20145206邹京儒问卷调查
- mysql一行受影响是什么意思_行受影响 是什么意思
- Javascript 面向对象编程(一):封装 ——转自阮一峰博客
- Uni中城市列表选择包含高德城市编码
热门文章
- AWVS11安装、操作
- 按键精灵移动端系列 - IOS(苹果版)安装1.3.8 deb
- 视频直播app和网页版怎么开发?
- Win10系统磁盘扩展分区与恢复分区
- MySQL报错:Duplicate entry ‘xxx‘ for key ‘xxx‘
- 记一次阴阳师挂机脚本开发
- 「深度」规模仅为12亿元,充电桩建设真的是朝阳产业吗?
- css 实现心形加载动画
- 解读 Oracle 12c 自适应执行计划一例
- Postgresql逻辑复制报错could not start WAL streaming: ERROR: replication slot “x“is active for PID xxx