码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-03-04 12:40:41      阅读:294      评论:0      收藏:0      [点我收藏+]

标签:row   col   ==   box   根据   state   span   vue   cti   

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

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

 

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

标签:row   col   ==   box   根据   state   span   vue   cti   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!