vue中使用elementui里的table时 checkBox不被选中设置

时间:2020-03-04 12:51:41   收藏:0   阅读:1904
<el-table-column type="selection" width="55" :selectable=checkboxInit>

 
methods里
  
checkboxInit(row,index){
  if (row.withdrawState==2)//这个判断根据你的情况而定
    return 0;//不可勾选
  else
    return 1;//可勾选
  },

 

原文:https://www.cnblogs.com/shuihanxiao/p/12408506.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!