Vue报错

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 to denote scoped slots.
自2.5版以来,作用域插槽的“scope”属性已被弃用并替换为“slot scope”。除了之外,新的“slot scope”属性还可以用于普通元素,以表示作用域的插槽。
在这里插入图片描述
原因:

<template scope="scope">
</template>

解决:

<template slot-scope="scope">
</template>
Logo

前往低代码交流专区

更多推荐