-
-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
菜单展开或者收缩响应速度问题 #2701
Comments
官网确实有点慢。Menu 的演示我看着应该还行? |
演示的还行,之前github看的一个项目的例子也是慢,响应都要4到5s的样子 |
貌似和 react-router 配合的缘故。 |
@afc163 额,好像的确都是用了 react-router |
官网的左侧导航展开和收缩是事件没触发,点了之后鼠标放着不动是永。。。移出了 lits 刷新 props 了才执行动画的。。不是响应慢的问题 。。。 我不是跟你说过了??@afc163 |
的确是要鼠标移开才开始执行动画。 @jljsj33 无法优化? |
这里的问题吧。。。shouldComponentUpdate |
我也碰到了打开缓慢的问题,不过我没有使用router,但是在里面添加了配置项openKeys,在部分电脑上打开比较缓慢。对了,也出现了点击后,鼠标移开才可以展开的问题。 |
|
不知道啥情况。。。看到这里是直接等于的。。。改成this.setState就没事了。。。。。https://github.com/react-component/menu/blob/master/src/Menu.jsx#L151 , |
ref: #1600 |
主站问题还是没法修复,老的 rc-menu 发个 fix 版本? |
之前的版本不好修 react-component/menu#48 |
然后应该可以等 2.0 发布?毕竟不是功能性的 bug。。 |
收藏一下 |
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. |
为何Menu组件的展开和收缩会那么慢,官网左侧菜单就是例子
The text was updated successfully, but these errors were encountered: