设置el-table的class值
在样式中设置:
//表头
/deep/ .tableBox th {
padding: 0 !important;
height: 50px;
line-height: 30px;
text-align: center;//文字居中对齐
}
//各行高度
/deep/ .tableBox td {
padding: 0 !important;
height: 40px;
line-height: 30px;
text-align: center;//文字居中对齐
}