我想当scope.row.on==='某个值' 的时候el-switch标签里才有disabled属性,该怎么加? <el-table-column width="200%" label="状态" class="switchVal">
<template slot-scope="scope">
<el-switch
@change="changeSwitch(scope.$index, scope.row)"
v-model="scope.row.on"
disabled
active-text="启用"
inactive-text=""> on-color="#00A854"
on-text="启动"
on-value="1"
off-color="#F04134"
off-text="禁止"
off-value="0"
>
</el-switch>
</template>
</el-table-column>
添加回答
举报
0/150
提交
取消