element 多选 selection 根据条件禁止选择

<el-table class="lin_height" :data="tableData" @selection-change="handleSelectionChange"  @sort-change='sortChange' :default-sort="{prop: 'applyDate', order: 'asc'}" >
<template v-for="(item,index) in ip_list">
<el-table-column :show-overflow-tooltip="true" :min-width="item.minWidth" align="center"
:type="item.selection" :prop="item.prop" :label="item.label" :sortable="item.sortable"
:selectable="item.selectInit"
>
</el-table-column>

</template>


</el-table>

<script>
methods: {
//已提交验证
selectInit(row,index){
console.log(row)
if(row.flowStatus=="已提交"){
return false  //不可勾选
}else{
return true  //可勾选
}
},

}

</script>
原文地址:https://www.cnblogs.com/wplcc/p/10967672.html