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

Tabs 在 2.9.2 以后 type!="line",TabPanel的切换动画会失效 #6070

Closed
303394539 opened this issue May 9, 2017 · 11 comments
Closed
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@303394539
Copy link
Contributor

Version

2.10.0

Environment

react@15.5.4

Reproduction link

https://ant.design/components/tabs-cn/

Steps to reproduce

type="card" 或者 type="editable-card" TabPanel的切换动画会失效

What is expected?

恢复切换过度动画

What is actually happening?

简单的切换,没有过度动画


从2.9.2版本以后出现该问题,2.9.1正常

@yesmeck yesmeck added the 🐛 Bug Ant Design Team had proved that this is a bug. label May 9, 2017
@afc163
Copy link
Member

afc163 commented May 9, 2017

设计上就不应该有切换动画的。

@afc163 afc163 closed this as completed May 9, 2017
@303394539
Copy link
Contributor Author

是点击tab的时候,TabPanel之间的过度动画,原来有淡入淡出,现在没了,有的话是会体验好一些平滑得多。而且也应该有参数控制开关和编写自定义动画

@303394539
Copy link
Contributor Author

@afc163 这个问题要解决不?之前有动画,现在没有了,是属于升级bug?还是说你们改设计了?以后是不是都没动画了?

@afc163
Copy link
Member

afc163 commented May 10, 2017

原来就不应该有动画。

@303394539
Copy link
Contributor Author

@afc163 想在新版本的type="card" 或者 type="editable-card"实现动画,有没有解决方案?现在type="line"有动画的

@afc163
Copy link
Member

afc163 commented May 10, 2017

现在是写死的,我看看能不能允许用户覆盖。

@afc163 afc163 reopened this May 10, 2017
@afc163 afc163 self-assigned this May 10, 2017
@afc163 afc163 closed this as completed in de87bd7 May 10, 2017
@afc163
Copy link
Member

afc163 commented May 10, 2017

这样可以用 <Tabs type="card" animated /> 来覆盖默认值。

@303394539
Copy link
Contributor Author

@afc163 不得行,这个属性是打开动画,但是现在的情况是动画都没生效

@afc163
Copy link
Member

afc163 commented May 15, 2017

先试试最新版本如何?

@303394539
Copy link
Contributor Author

@afc163 我试了2.10.1这样做生效了

@lock
Copy link

lock bot commented May 15, 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 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants