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

spin动画快速切换能否优化? #4306

Closed
wtlyu opened this issue Dec 20, 2016 · 6 comments · Fixed by #4424
Closed

spin动画快速切换能否优化? #4306

wtlyu opened this issue Dec 20, 2016 · 6 comments · Fixed by #4424
Assignees

Comments

@wtlyu
Copy link

wtlyu commented Dec 20, 2016

  • antd 版本: 2.1
  • 操作系统及其版本: ALL
  • 浏览器及其版本: ALL

Spin组件效果很赞,不过如果等待时间特别少的话,动画自身的淡入淡出反而会占用了更多的时间。

比如说,我在异步请求中间用spin做过渡,在内网下请求几乎是秒出的情况下,看到内容已经更新了,然而spin还在淡入,然后转一下,然后淡出😂

不知是否有优化的办法呢?

@RaoHai
Copy link
Contributor

RaoHai commented Dec 20, 2016

感觉跟这个有点冲突。。

#2398

@benjycui
Copy link
Contributor

@eastpiger 你的情况就不要用 Spin 了,如果能保证加载速度的话。

@wtlyu
Copy link
Author

wtlyu commented Dec 20, 2016

@benjycui 我这种情况仅限于内网会出现秒开,外网访问还是要spin等一会的呢。感觉确实#2398 似乎和这个有关系

@benjycui
Copy link
Contributor

是这个原因,加过度动画是为了解决闪烁的问题。

其实还可以加个延时出现加载动画的处理,这样能缓解秒开的问题。

@afc163
Copy link
Member

afc163 commented Dec 22, 2016

@benjycui 感觉可行。

@lock
Copy link

lock bot commented May 2, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators May 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants