1.<el-table-column fixed="right" label="操作" width="100"> <template slot-scope="scope"> <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button> <el-button type="text" size="small">编辑</el-button> </template> </el-table-column>
当1,不生效的时候,使用v-slot代替slot-scope
<el-table-column label="操作" width="100" prop="Bizgroup">
<template v-slot="scope">
<el-button @click="handleClick11(scope.row)" type="text" size="small">编辑</el-button>
</template>
</el-table-column>