报错内容:
error 'scope' is defined but never used vue/no-unused-vars
解决方法:
1:把原来的slot-scope="scope"写为slot-scope
2:写为这种形式
<template slot="header" slot-scope="{}">
<el-input v-model="search" placeholder="请输入关键字搜索"/>
</template>
结尾:
错误记录。
报错内容:
error 'scope' is defined but never used vue/no-unused-vars
解决方法:
1:把原来的slot-scope="scope"写为slot-scope
2:写为这种形式
<template slot="header" slot-scope="{}">
<el-input v-model="search" placeholder="请输入关键字搜索"/>
</template>
结尾:
错误记录。