列表插槽使用
{
label: '是否展示',
prop: 'isShow',
solt: true,
}
<!--自定义列 展示 1 不展示 0 -->
<template slot-scope="scope" slot="display">
<div style="color: red;cursor: pointer">
<el-switch v-model="scope.row.display" :active-value="1" :inactive-value="0" @change="getIsShow(scope.row)" active-color="#13ce66" inactive-color="#ff4949"> </el-switch>
</div>
</template>
效果: