From 285e05fc15f67acc3f807db88396b40fc4919b50 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 25 Aug 2021 23:40:57 +0800 Subject: [PATCH] test: update transition test --- components/_util/transition.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/_util/transition.tsx b/components/_util/transition.tsx index 140e31713..704d3d22a 100644 --- a/components/_util/transition.tsx +++ b/components/_util/transition.tsx @@ -1,5 +1,5 @@ import type { BaseTransitionProps, CSSProperties, Ref } from 'vue'; -import { onBeforeUpdate } from 'vue'; +import { onUpdated } from 'vue'; import { getCurrentInstance } from 'vue'; import { defineComponent, nextTick, Transition as T, TransitionGroup as TG } from 'vue'; @@ -52,7 +52,7 @@ if (process.env.NODE_ENV === 'test') { inheritAttrs: false, setup(_props, { slots, attrs }) { const instance = getCurrentInstance(); - onBeforeUpdate(() => { + onUpdated(() => { const child = instance.subTree.children[0]; if (child && child.dirs && child.dirs[0]) { const value = child.dirs[0].value;