1、先给表格全选定一个宽度
<el-table-column width="70px" type="selection" header-align="center" align="center" :resizable="false">
</el-table-column>
2、设置样式
/*表格表头全选*/
/*要添加deep,不然没效果*/
/deep/
.el-table__header
.el-table-column--selection
.cell
.el-checkbox:after {
color: #909399;
content: "全选";
font-size: 14px;
margin-left: 5px;
font-weight: bold;
}