element-ui 的table 滚动条在合计上边bug解决方案:
.el-table {
overflow-x: auto;
}
.el-table__header-wrapper,
.el-table__body-wrapper,
.el-table__footer-wrapper {
overflow: visible;
}
.el-table::after {
position: relative;
}
.el-table--scrollable-x .el-table__body-wrapper {
overflow: visible;
}
- 属性更改是全局的,不要写在scoped内
- 添加了scoped
<style lang="less" scoped>
就在代码前面加/deep/进行深度选择
/deep/ .el-table {
overflow: auto;
}
- 修改前:
修改后: