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.
警告原因:
“scope"标签自Vue 2.5版本后被遗弃,替代的新标签时"slot-scope”,优先常看双方的Vue版本,可能是因为Vue版本不一致。
在多人开发情况下,可能你和你的基友同事版本不一致,例如你是2.82,基友同事版本2.33
示例
在原vue2.5之前,项目中写有
<template scope="scope">
</template>
2.5版本后
<template slot-scope="scope">
</template>