-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
升级2.0.0-rc1后,菜单明显切换变慢 #3188
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
Comments
omg 没有更流畅吗 官网体验感觉更好啊 不科学啊 |
@tangjinzhou 是改变这个selectedKeys 的时候渲染更慢。可能要在菜单数量多一点的时候才能出来。大概60+菜单。我在2.0.0-rc1的时候很明显感觉到。所以尝试还原到beta15,并删除yarn.lock防止依赖没改。最后菜单明显在改变selectedKeys的时候渲染快了很多 |
同样有这样的视觉交过,明显的掉帧的感觉,很卡 |
@tangjinzhou 这个确实会卡,现在升级上来rc.1,点击菜单的时候渲染慢导致路由切换变慢。菜单多的时候很明显的视觉效果。rc1有需要的功能,能否优先优化下或者将菜单先还原到上一个版本。不然目前整体切换总是卡卡的感觉给人非常不流畅的感觉。 |
感觉是越优化越卡,哈哈 。element-plus的菜单真香。代码优化程度不是一个级别的 |
添加:forceSubMenuRender="false" 试试 |
你觉得代码优化不好可以贡献代码。 |
@tangjinzhou https://github.com/anncwb/vue-vben-admin 测试这个问题有几个方式
按你说的 forceSubMenuRender=false 确实在rc1会稍微不卡。但是把多个菜单都打开一遍又会回到原来的卡顿状态 下面是我一些测试
|
@tangjinzhou 在线示例可能不好还原,所以麻烦可以拉下git项目。内部菜单会多点 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
2.0.0-rc.1
Environment
vite vue3
Steps to reproduce
升级到2.0.0-rc.1后,点击菜单,会卡顿一会才切换。还原到beta15则不会。
What is expected?
还原beta15的菜单
What is actually happening?
菜单切换选择效果变慢
The text was updated successfully, but these errors were encountered: