最後一列爲fixed屬性時,高度會出現未佔滿父元素的整個高度,因此會出現一條灰線
解決方法:
在<el-table>標籤上加一個class="table-fixed"
在樣式文件中增加如下css代碼(利用樣式穿透)
.table-fixed {
/deep/ .el-table__fixed-right {
height: 100% !important; //設置高優先,以覆蓋內聯樣式
}
/deep/ .el-table__fixed {
height: 100% !important; //設置高優先,以覆蓋內聯樣式
}
}