mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 11:08:00 +08:00
perf: motion
This commit is contained in:
parent
207c944e21
commit
4c786dd7a7
@ -29,7 +29,7 @@ export const getTransitionProps = (transitionName: string, opt: TransitionProps
|
||||
enterActiveClass: `${transitionName}-enter ${transitionName}-enter-prepare`,
|
||||
enterToClass: `${transitionName}-enter ${transitionName}-enter-active`,
|
||||
leaveFromClass: ` ${transitionName}-leave`,
|
||||
leaveActiveClass: `${transitionName}-leave ${transitionName}-leave-active`,
|
||||
leaveActiveClass: `${transitionName}-leave`,
|
||||
leaveToClass: `${transitionName}-leave ${transitionName}-leave-active`,
|
||||
...opt,
|
||||
}
|
||||
|
@ -115,9 +115,9 @@ export default defineComponent({
|
||||
};
|
||||
|
||||
watch(
|
||||
[toRef(motion.value, 'name'), status],
|
||||
[motion, status],
|
||||
() => {
|
||||
if (!motion.value.name && status.value === 'motion') {
|
||||
if (!motion.value && status.value === 'motion') {
|
||||
goNextStatus();
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user