提供一个方法,
通过添加相应类来控制样式,设置 display: none ,达到隐藏 checkbox 的目的。
利用Table Attributes 属性里面的 cell-class-name 属性,添加单元格的class
<template>
<el-table
:cell-class-name="cellcb"
...
>
</el-table>
</template>
<script>
methods: {
cellcb(row){
if(row.row.checkStatus === 1&&row.columnIndex === 0){
return "myCell"
}
}
</script>
<style>
.myCell .el-checkbox__input {
display: none
}
</style>

记录下,转自:https://www.imooc.com/wenda/detail/513985

隐藏表头中的全选框

::v-deep .el-table__header-wrapper  .el-checkbox{
display:none
}

最新文章

  1. AlloyRenderingEngine燃烧的进度条
  2. MSSQL Server数据库的四种连接方法和sql连接字符串
  3. 去掉开始菜单中新装程序的红色标记【Windows】
  4. Stereo Matching 立体匹配学习资料
  5. HDU 1506 Largest Rectangle in a Histogram (dp左右处理边界的矩形问题)
  6. 十一、Swing
  7. 查找指定目录下的文件 .xml
  8. Linux下的Crontab应用
  9. asp.net 下OnClientClick的妙用
  10. Winform动态加载TabControl用法
  11. PHP __autoload函数知识点
  12. php正则表达式的基本语法
  13. [刷题]Google Code Jam 2017 - Round1 C Problem A. Ample Syrup
  14. SpringCloud学习之SpringCloudStream&amp;集成kafka
  15. chrome添加离线插件
  16. MySQL事务锁问题-Lock wait timeout exceeded
  17. c++入门之关于cin,cout以及数据流的认识
  18. bzoj千题计划301:bzoj4259: 残缺的字符串
  19. 测试mktime和localtime_r性能及优化方法
  20. 【Express系列】第2篇——主程序的改造

热门文章

  1. 将xlsx列表文件转为md列表
  2. [Python]Python调用Matlab (Pycharm版本)
  3. Matplotlib学习笔记1 - 上手制作一些图表吧!
  4. ResourceQuota与LimitRange区别
  5. 通过Docker启动DB2,并在Spring Boot整合DB2
  6. 解决前端发送post 请求出现403,cancled等问题
  7. js函数中的this指向
  8. PV系统 Argus 8.4
  9. 线上排查:内存异常使用导致full gc频繁
  10. elementui表格自定义格式实现原理???