perf: motion
parent
207c944e21
commit
4c786dd7a7
|
@ -29,7 +29,7 @@ export const getTransitionProps = (transitionName: string, opt: TransitionProps
|
||||||
enterActiveClass: `${transitionName}-enter ${transitionName}-enter-prepare`,
|
enterActiveClass: `${transitionName}-enter ${transitionName}-enter-prepare`,
|
||||||
enterToClass: `${transitionName}-enter ${transitionName}-enter-active`,
|
enterToClass: `${transitionName}-enter ${transitionName}-enter-active`,
|
||||||
leaveFromClass: ` ${transitionName}-leave`,
|
leaveFromClass: ` ${transitionName}-leave`,
|
||||||
leaveActiveClass: `${transitionName}-leave ${transitionName}-leave-active`,
|
leaveActiveClass: `${transitionName}-leave`,
|
||||||
leaveToClass: `${transitionName}-leave ${transitionName}-leave-active`,
|
leaveToClass: `${transitionName}-leave ${transitionName}-leave-active`,
|
||||||
...opt,
|
...opt,
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,9 +115,9 @@ export default defineComponent({
|
||||||
};
|
};
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
[toRef(motion.value, 'name'), status],
|
[motion, status],
|
||||||
() => {
|
() => {
|
||||||
if (!motion.value.name && status.value === 'motion') {
|
if (!motion.value && status.value === 'motion') {
|
||||||
goNextStatus();
|
goNextStatus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue