
<el-table-column
type="selection"
:selectable="checkSelect"
width="40"
/>
此属性必须加在 type为“selection”上
table属性中将其方法返回为true 为可选中 返回false 不可选中
方法checkSelect
checkSelect(row) {
return row.linenGroupCustomerId == null
},
本文介绍如何在Element UI的表格组件中,通过设置type为'selection'的列的特定属性,实现根据方法checkSelect的返回值动态控制行的可选中状态。
1万+

被折叠的 条评论
为什么被折叠?



