Browse Source

perf: motion

pull/5317/head
tangjinzhou 3 years ago
parent
commit
4c786dd7a7
  1. 2
      components/_util/transition.tsx
  2. 4
      components/vc-trigger/Popup/PopupInner.tsx

2
components/_util/transition.tsx

@ -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,
}

4
components/vc-trigger/Popup/PopupInner.tsx

@ -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…
Cancel
Save