@vue/runtime-dom 3.6.0-rc.10 → 3.6.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/runtime-dom.cjs.js +1 -1
- package/dist/runtime-dom.cjs.prod.js +1 -1
- package/dist/runtime-dom.esm-browser.js +16 -8
- package/dist/runtime-dom.esm-browser.prod.js +3 -3
- package/dist/runtime-dom.esm-bundler.js +1 -1
- package/dist/runtime-dom.global.js +16 -8
- package/dist/runtime-dom.global.prod.js +3 -3
- package/package.json +4 -4
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.6.0-rc.
|
|
2
|
+
* @vue/runtime-dom v3.6.0-rc.11
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3410,10 +3410,11 @@ const BaseTransitionPropsValidators = {
|
|
|
3410
3410
|
onAfterAppear: TransitionHookValidator,
|
|
3411
3411
|
onAppearCancelled: TransitionHookValidator
|
|
3412
3412
|
};
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3413
|
+
function isEmptyTransitionChild(vnode, instance) {
|
|
3414
|
+
if (vnode.type === Comment) return true;
|
|
3415
|
+
if (vnode.type === VaporSlot || isVaporComponent(vnode.type)) return !getVaporInterface(instance, vnode).hasTransitionChild(vnode);
|
|
3416
|
+
return !!vnode.component && isEmptyTransitionChild(vnode.component.subTree, instance);
|
|
3417
|
+
}
|
|
3417
3418
|
const BaseTransitionImpl = {
|
|
3418
3419
|
name: `BaseTransition`,
|
|
3419
3420
|
props: BaseTransitionPropsValidators,
|
|
@@ -3461,7 +3462,7 @@ function getLeavingNodesForType(state, vnode) {
|
|
|
3461
3462
|
function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
3462
3463
|
const key = String(vnode.key);
|
|
3463
3464
|
const leavingVNodesCache = getLeavingNodesForType(state, vnode);
|
|
3464
|
-
|
|
3465
|
+
const hooks = baseResolveTransitionHooks({
|
|
3465
3466
|
isLeaving: () => leavingVNodesCache[key] === vnode,
|
|
3466
3467
|
setLeavingNodeCache: () => {
|
|
3467
3468
|
leavingVNodesCache[key] = vnode;
|
|
@@ -3479,6 +3480,13 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
3479
3480
|
return hooks;
|
|
3480
3481
|
}
|
|
3481
3482
|
}, props, state, instance);
|
|
3483
|
+
if (vnode.type === VaporSlot) extend(hooks, {
|
|
3484
|
+
__vapor: true,
|
|
3485
|
+
props,
|
|
3486
|
+
state,
|
|
3487
|
+
instance
|
|
3488
|
+
});
|
|
3489
|
+
return hooks;
|
|
3482
3490
|
}
|
|
3483
3491
|
function baseResolveTransitionHooks(context, props, state, instance) {
|
|
3484
3492
|
const { isLeaving, setLeavingNodeCache, unsetLeavingNodeCache, earlyRemove, cloneHooks } = context;
|
|
@@ -3594,7 +3602,7 @@ function prepareTransitionSwitch(previous, next, props, state, instance, resumeA
|
|
|
3594
3602
|
if (nextInner.type !== Comment) setTransitionHooks(nextInner, enterHooks);
|
|
3595
3603
|
const mode = props.mode;
|
|
3596
3604
|
const previousInner = previous && getInnerChild$1(previous);
|
|
3597
|
-
if (previous && previousInner &&
|
|
3605
|
+
if (previous && previousInner && !isSameVNodeType(previousInner, nextInner) && !isEmptyTransitionChild(previousInner, instance)) {
|
|
3598
3606
|
const leavingHooks = prepareLeavingTransitionHooks(previousInner, props, state, instance);
|
|
3599
3607
|
if (nextInner.type !== Comment && (mode === "out-in" || mode === "in-out") && applyTransitionModeSwitch(previousInner, leavingHooks, mode === "in-out" ? () => enterHooks : void 0, props, state, resumeAfterLeave)) return emptyPlaceholder(next);
|
|
3600
3608
|
}
|
|
@@ -8708,7 +8716,7 @@ function isMemoSame(cached, memo) {
|
|
|
8708
8716
|
}
|
|
8709
8717
|
//#endregion
|
|
8710
8718
|
//#region packages/runtime-core/src/index.ts
|
|
8711
|
-
const version = "3.6.0-rc.
|
|
8719
|
+
const version = "3.6.0-rc.11";
|
|
8712
8720
|
const warn = warn$1;
|
|
8713
8721
|
/**
|
|
8714
8722
|
* Runtime error messages. Only exposed in dev or esm builds.
|