Skip to content
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

🐛[BUG]ProTable少量数据下宽度变化造成严重卡顿 #8709

Open
flycran opened this issue Sep 7, 2024 · 0 comments
Open

🐛[BUG]ProTable少量数据下宽度变化造成严重卡顿 #8709

flycran opened this issue Sep 7, 2024 · 0 comments

Comments

@flycran
Copy link

flycran commented Sep 7, 2024

🐛 bug 描述

使用ProLayout包裹ProTable,并且columns有columns: true的情况下,在折叠菜单栏时造成页面严重卡顿。在仅有少量数据(三列十行)的情况下造成0.5秒以上的脚本调用,体感卡顿超过1秒,在一般数据量下(5列30行),造成超过1.1秒的脚本调用,体感卡顿超过2秒。
取消所有columns的copyable能让卡顿明显减轻,但依然存在肉眼可见的卡顿

📷 复现步骤

  1. 创建一个拥有可折叠侧边栏的ProTable组件
  2. 创建一个带有columns copyable: true的ProTable
  3. 折叠侧边栏,将看到明显的卡顿
  4. 删除copyable: true,再次折叠侧边栏,将看到卡顿明显减轻

🏞 期望结果

💻 复现代码

© 版本信息

  • ProComponents 版本: [2.4.4]
  • umi 版本
  • 浏览器环境edge 128.0.2739.54
  • 开发环境 [windows 11]

🚑 其他信息

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant