test: update transition test

pull/4586/head
tangjinzhou 2021-08-25 23:40:57 +08:00
parent a58eaf5ea1
commit 285e05fc15
1 changed files with 2 additions and 2 deletions

View File

@ -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;