el-table固定列最后一项显示不全(只显示上半部分数据)

原因:高度不够,导致被覆盖

示例:

 

 解决方法:

// 计算方式,高度,滚动可以保证高度不受限制,页面内容会完全显示
::v-deep .el-table__fixed {
    height: 100% !important;
    z-index: 50;
  }
  ::v-deep .el-table__body-wrapper {
    overflow: scroll !important;
  }
  ::v-deep .el-table__fixed:before {
    width: 0;
    height: 0;
  }

猜你喜欢

转载自blog.csdn.net/future_1_/article/details/130101882