-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Table 组件在数据多的情况下,渲染很慢,操作迟顿 #1398
Comments
数据大概是多少条呢? |
一次50条左右 @furybean |
测试过 50 * 500 的,速度是有点卡,不过降到 50 * 200,速度还是可以接受的。50 条的渲染速度还好吧,麻烦提高一份测试用例。 |
@furybean |
这个只是50 条数据的。 |
@forget-chuckie 麻烦贴一下 el-table 的配置,或者做成 jsfiddle 的一个例子。 |
@furybean 我发的数据里, |
@furybean 这个为table.vue组件里的内容
|
`<script>
</script>` |
@forget-chuckie 现在使用的版本是? |
@furybean |
@forget-chuckie 1.0.0.rc8 刚好优化过一次,1.0.3 也优化过一次,你可以升级下试试。 |
@furybean 好的 |
@forgetphp 效果好么? |
@furybean 可以加载1000条数据左右,还是很慢的 |
@Raganof 现在版本的在更新的时候有点问题,会在大多数情况下多次渲染,近期会针对这个问题做一个优化。 |
@furybean 我在table中嵌套了一个table,子table数据通过父table id获取。但每次点击子table分页的时候,子table渲染特别慢,有时候30S+,但是接口响应毫秒级别。有什么好的建议吗? |
我的做法是先根据后台返回的数据把table渲染出来,然后根据table里的
data
字段进行列表渲染,每条数据有 50 个字段左右。服务器请求花 500ms 左右,但是渲染就得好一会。然后去点 select 按钮,点一个就得好半天,猜测是不是在点击的时候做全部数据遍历了?希望官方能解决下这个问题。The text was updated successfully, but these errors were encountered: