elementUI 中表格前边的复选框设置默认禁选

<el-table :data="tableData"
       v-loading="showloading" element-loading-background="rgba(0, 0, 0, 0.3)" 
       border stripe 
       >
	<el-table-column type="selection" :selectable='checkboxInit' width="55"></el-table-column>
    checkboxInit(row,index){
      if (row.completion==0) {//你需要判断的条件
        return 0;//不可勾选
      }else{
        return 1;//可勾选
      }
    },

猜你喜欢

转载自blog.csdn.net/qq_37588752/article/details/83212285
今日推荐