the 'scope' attribute for scoped slots have been deprecated and replaced by 'slot-scope' since 2.5


the ‘scope’ attribute for scoped slots have been deprecated and replaced by ‘slot-scope’ since 2.5

具体信息

(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 new “slot-scope” attribute can also be used on plain elements in addition to <template> to denote scoped slots.

翻译

(使用值代替错误的实例)(自定义值起)自2.5以来,作用域插槽的“作用域”属性已被弃用,并由“插槽作用域”代替。 除了<template>以外,新的“ slot-scope”属性还可以用于普通元素,以表示作用域的插槽。

解决

将<template>中的scope属性更换为slot-scope


文章作者: zxc
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 zxc !
 上一篇
解决google翻译速度慢 解决google翻译速度慢
解决google翻译速度慢原因: google翻译改版之后翻译速度慢 解决办法 下载请求重定向插件 URLRedirector https://xiu.lanzoux.com/b07489s0h下载解压之后得到URLRedirector_1
2021-01-04
下一篇 
VsCode设置vue文件换行问题 VsCode设置vue文件换行问题
问题使用vscode编辑vue文件的时候,会使用vetur。它默认的配置的换行机制尤其是js的换行比如下图,让人感觉有点不舒服 解决方案选择 文件->首选项->设置 或者直接打开 setting.json, 进行下面的配置即可
2020-12-30 zxc
  目录