Element UI table表格组件错位问题
Element 表格高度计算不正确处理办法 el-table 非 fixed 列
//mainTable 是父级ID
/deep/ #mainTable .el-table .el-table__body-wrapper{
height: calc(100% - 50px) !important;
}
//subTable 是父级ID
/deep/ #subTable .el-table .el-table__body-wrapper{
height: calc(100% - 50px) !important;
}
fixed 列高度计算不正确
/deep/ .el-table__fixed-right .el-table__fixed-body-wrapper {
top: 51px !important;
}
表格固定列下面出现显示不全且多出一个边框:
/* 左右固定列的高度 */
.el-table__fixed,.el-table__fixed-right{
height: 100% !important;
}
给表格设置了高度之后,出现表头错位:
.el-table--border th.gutter:last-of-type {
display: table-cell!important;
width: 17px!important;
}
还没有评论,来说两句吧...