test: update transition test
parent
a58eaf5ea1
commit
285e05fc15
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue