You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I apply a transition on a component A who isn't fragment, the transition hooks (resolved from B)' call contexts point to A, not the component B. For example following, I can't get the props I wanted to animate, because the this is pointing to inner instance, not the comp instance.
Have I missed something? Because I don't know why the context should be bound to the inner, and if I really want to access inner's props, I can access it through the $refs.inner...
<template><div><innertransition="tran" v-show="visible"></inner></div><template><script>exportdefault{name: "comp",transitions: {tran: {enter(el,done){// I want to access some props on `comp`, but the `this` points to `inner` instance:(}}}}</script>
The text was updated successfully, but these errors were encountered:
If I apply a transition on a component
A
who isn't fragment, the transition hooks (resolved fromB
)' call contexts point toA
, not the componentB
. For example following, I can't get the props I wanted to animate, because thethis
is pointing toinner
instance, not thecomp
instance.Have I missed something? Because I don't know why the context should be bound to the
inner
, and if I really want to accessinner
's props, I can access it through the$refs.inner
...The text was updated successfully, but these errors were encountered: