在引入plus后文中用:
<template slot-scope="scope">
{{scope.row}}
</template>
这里脚手架会给报错:
slot-scope
are deprecated vue/no-deprecated-slot-scope-attribute
因为这个方法实在vue2中的,在vue3中已经废弃了,改为v-slot
以下是新的使用方法:
<template>
<el-table>
<el-table-column label="Name" prop="name" v-slot="{row}">
{{ row.name }}
</el-table-column>
</el-table>
</template>
就等于直接使用了row