当前位置:   article > 正文

el-table表格的复选框,全选改为“选择”_el-table 左上角的全选框更换为全选按钮

el-table 左上角的全选框更换为全选按钮
  1. 给表格列加类名
    在这里插入图片描述
<el-table-column label-class-name="disabledCheck" type="selection" width="50"></el-table-column>
  • 1
  1. 原来的复选不显示,显示为文字"选择"
.el-table .disabledCheck .cell .el-checkbox__inner{
   display: none !important; 
 }
 .el-table .disabledCheck .cell::before{
   content: '选择';
   text-align: center;
   line-height: 36px;
 }
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  1. 效果展示
    在这里插入图片描述
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/460555
推荐阅读