Vue.js 2.6.0 版本之后,slot 和 slot-scope 被废弃了,取而代之的是使用新的 <template v-slot> 语法。
原来这样写的话现在的编辑器会报错。
·
原来这样写的话现在的编辑器会报错
<template slot-scope="scope" slot="level">
<el-tag>{{ scope.row.level }}</el-tag>
</template>
现在改成这样写
<template v-slot:level="scope">
<el-tag>{{ scope.row.level }}</el-tag>
</template>
更多推荐
已为社区贡献1条内容
所有评论(0)