-
-
Notifications
You must be signed in to change notification settings - Fork 47.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scrollable Table lags #4522
Comments
具体 demo ? 性能优化是个很细节的问题,务必提供相关场景的 demo,谢谢。 |
不算优化,就是普通简单表格DEMO,静态数据,装进antd-table, IE11 就非常卡顿(滚动滚动条或者鼠标来回在表上来回的mouseover,CPU占用就很高); 装进rc-table就没有什么问题! |
最简单的就是你们用 IE11 访问你们的antd官网组件下的table页面,看看是否卡死,谢谢! |
@DerekHQ 试了 1000 条数据每页 20 条分页并不卡,可以的话还是帮我们提供个 demo 吧,官网上例子太多很难定位问题。 |
@yesmeck 谢谢,这么晚了还在处理问题!明天我准备个DEMO!^_^ |
@DerekHQ Please provide a re-producible demo: http://codepen.io/benjycui/pen/KgPZrE?editors=001 |
@benjycui 'Codepen' is not support IE11. |
@DerekHQ it works fine while I test it in IE11.. |
@benjycui demo 放到了你的codepen上了,但是IE11下无法看到运行效果,Edge能看; 实际效果是:chrome极为流畅,Edge有些卡顿,IE11极为卡顿; 我们多台笔记本测试效果都是一样! |
@DerekHQ 你需要 fork 一份,否则我们看不到。 |
发现跟 css 有关系,用 antd 的 |
ant-design/components/table/style/index.less Lines 53 to 56 in 70a0cc0
&-tbody > tr > td {
border-bottom: @border-width-base @border-style-base @border-color-split;
position: relative;
} 这几句删掉就不卡了。 |
去掉 @afc163 这句有没有特别的作用。 |
commit 01f5b61 |
有用,稍等我找下场景。 IE 真是见鬼,这居然会卡。 |
之前有需求希望把单元格设置成其他色彩的需求。当时使用了类似下面的 hack 去做: render: () => {
return <div className="blue">xxx</div>
} .ant-table td {
position: relative;
}
.blue:after {
position: abolute;
background: blue;
} 然后后来干脆默认在 td 直接加上 现在如果有性能问题,先删掉,反正没有作为正式场景放出来。 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Environment(required)
Antd的 table组件,分页(每页二十条)显示列表数据时,
The text was updated successfully, but these errors were encountered: