We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
afterEnter钩子并没有等到transition结束才调用,而是在transition刚触发后就调用了?
afterEnter
我以为我写错了,然而我看了官网的例子,afterEnter也是在transition结束之前就调用了。但是afterLeave确实在transition结束之后才调用。
为什么afterEnter没有像afterLeave那样,在transition结束之后才调用呢?这对我写过渡效果的组件影响很大,因为很多时候需要在过渡结束的时候写回调,而过渡的时间又是在CSS里面控制。
vue的版本刚升级到1.0.7,chrome和firefox都试过了。
vue
The text was updated successfully, but these errors were encountered:
01825aa
你好,我现在也被这个问题困扰了,能告知我一下最后的解决方案吗,谢谢。
Sorry, something went wrong.
这个问题现在还存在,我用的是2.3.4的版本,在用transition-group的时候。
@tanrenjie @yyx990803 我发现是因为当前视图中依赖的数据在transition完成之前发生了变化,触发了transition提前结束,我在线写了一个重现的例子https://jsfiddle.net/ahcL844p/
No branches or pull requests
afterEnter
钩子并没有等到transition结束才调用,而是在transition刚触发后就调用了?我以为我写错了,然而我看了官网的例子,afterEnter也是在transition结束之前就调用了。但是afterLeave确实在transition结束之后才调用。
为什么afterEnter没有像afterLeave那样,在transition结束之后才调用呢?这对我写过渡效果的组件影响很大,因为很多时候需要在过渡结束的时候写回调,而过渡的时间又是在CSS里面控制。
vue
的版本刚升级到1.0.7,chrome和firefox都试过了。The text was updated successfully, but these errors were encountered: