1.页面控制
<el-table :data="tableData" stripe :row-style="rowClass" @select="selectFn" @select-all="selectFn" height="360">
<el-table-column type="selection" width="55" :selectable='checkboxT'></el-table-column>
</el-table>
2.方法控制
checkboxT(row,index) {
if (row.datatype == 2) {
return 1;
} else {
if(row.data){
return 1
}else{
return 0;
}
}
},
3.elment 文档