2.9.1
Window7 / Chrome 75.0.3770.90
2.6.10
https://codepen.io/anon/pen/ydOvRd
ElTable没有抖动
表格在某些高度(通常是滚动条即将出现时)下出现抖动,根本停不下来
Translation of this issue:
2.9.1
Windows 7/Chrome 75.0.3770.90
2.6.10
Https://codepen.io/anon/pen/ydOvRd
Open the Reproduction Link on Windows System
Look at the table
ElTable does not shake
The table wobbles at certain widths (usually when the scroll bar is about to appear) and can't stop at all.
Attach screenshot for your information
我也遇到了同样的问题
el-table__body 的 width 不停被设置
导致表格抖动
chrome最新版本有这个问题,不知道咋回事
把表格的 border-collapse给改了就好了
应该是跟滚动条有关,滚动条宽度改小也可以
表格疯狂计算宽度
.el-table__header,.el-table__body,.el-table__footer{
border-collapse: collapse!important;
}
我这儿设置border-collapse不管用
后来将表格外层元素的width宽度减去滚动条的宽度就解决了
类似这样:
<div :style={width: `calc(100% - ${scrollbarWidth})`}>
<el-table/>
</div>
Most helpful comment
chrome最新版本有这个问题,不知道咋回事
把表格的 border-collapse给改了就好了
应该是跟滚动条有关,滚动条宽度改小也可以
表格疯狂计算宽度
.el-table__header,.el-table__body,.el-table__footer{
border-collapse: collapse!important;
}