主要是提供了slot-scope来获取当前row对应的值
然后具体在一行中判断某个值的时候,用scope.$index, scope.row来拿
eg:
v-if=“scope.row.name != 'xxx”
<el-table-column
min-width="50%"
align="center"
label="操作">
<template slot-scope="scope">
<el-button
size="mini"
v-if="scope.row.name != 'xxx"
type="warning"
@click.stop="handleEdit(scope.$index, scope.row)">
{{scope.name}}
</el-button>
</template>
</el-table-column>