不知道是不是表头是动态的+表格高度做了自适应计算,用官方提供的doLayout不行,查到一个调整css的才有效。
给table加上class: table-fixed
<style lang="less">
.table-fixed {
.el-table__fixed-right {
height: 100% !important;
top: 10px !important;
}
.el-table__fixed {
height: 100% !important;
}
}
</style>