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

<el-table-column type="selection" width="55" :selectable='checkboxInit'>

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

 

posted @ 2020-03-04 11:36  shuihanxiao  阅读(5198)  评论(0编辑  收藏  举报