After the el-table column is fixed, the rows and columns are not aligned

Recently, when using the table of elmentUI, I found that when the column is fixed and the scroll bar appears, the row will be misaligned, even if doLayout() is useless

problem situation

insert image description here

Solution

/deep/ .el-table__fixed-body-wrapper .el-table__body {
    
      
	padding-bottom: 17px !important; // 滚动条高度
}
/deep/ .el-table__fixed,/deep/ .el-table__fixed-right{
    
    
	// background: #fff;
	height: calc( 100% - 14px) !important;
}

The specific number of px depends on the style of the scroll bar

Guess you like

Origin blog.csdn.net/weixin_44646763/article/details/129986347