@vue/compat 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/vue-compat.d.ts +5 -0
- package/dist/vue.cjs.js +17 -9
- package/dist/vue.cjs.prod.js +17 -9
- package/dist/vue.esm-browser.js +17 -9
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +20 -11
- package/dist/vue.global.js +17 -9
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +17 -9
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +20 -11
- package/dist/vue.runtime.global.js +17 -9
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-rc.
|
|
2
|
+
* @vue/compat v3.6.0-rc.11
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3853,10 +3853,11 @@ const BaseTransitionPropsValidators = {
|
|
|
3853
3853
|
onAfterAppear: TransitionHookValidator,
|
|
3854
3854
|
onAppearCancelled: TransitionHookValidator
|
|
3855
3855
|
};
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3856
|
+
function isEmptyTransitionChild(vnode, instance) {
|
|
3857
|
+
if (vnode.type === Comment) return true;
|
|
3858
|
+
if (vnode.type === VaporSlot || isVaporComponent(vnode.type)) return !getVaporInterface(instance, vnode).hasTransitionChild(vnode);
|
|
3859
|
+
return !!vnode.component && isEmptyTransitionChild(vnode.component.subTree, instance);
|
|
3860
|
+
}
|
|
3860
3861
|
const BaseTransitionImpl = {
|
|
3861
3862
|
name: `BaseTransition`,
|
|
3862
3863
|
props: BaseTransitionPropsValidators,
|
|
@@ -3905,7 +3906,7 @@ function getLeavingNodesForType(state, vnode) {
|
|
|
3905
3906
|
function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
3906
3907
|
const key = String(vnode.key);
|
|
3907
3908
|
const leavingVNodesCache = getLeavingNodesForType(state, vnode);
|
|
3908
|
-
|
|
3909
|
+
const hooks = baseResolveTransitionHooks({
|
|
3909
3910
|
isLeaving: () => leavingVNodesCache[key] === vnode,
|
|
3910
3911
|
setLeavingNodeCache: () => {
|
|
3911
3912
|
leavingVNodesCache[key] = vnode;
|
|
@@ -3923,6 +3924,13 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
3923
3924
|
return hooks;
|
|
3924
3925
|
}
|
|
3925
3926
|
}, props, state, instance);
|
|
3927
|
+
if (vnode.type === VaporSlot) extend(hooks, {
|
|
3928
|
+
__vapor: true,
|
|
3929
|
+
props,
|
|
3930
|
+
state,
|
|
3931
|
+
instance
|
|
3932
|
+
});
|
|
3933
|
+
return hooks;
|
|
3926
3934
|
}
|
|
3927
3935
|
function baseResolveTransitionHooks(context, props, state, instance) {
|
|
3928
3936
|
const { isLeaving, setLeavingNodeCache, unsetLeavingNodeCache, earlyRemove, cloneHooks } = context;
|
|
@@ -4038,7 +4046,7 @@ function prepareTransitionSwitch(previous, next, props, state, instance, resumeA
|
|
|
4038
4046
|
if (nextInner.type !== Comment) setTransitionHooks(nextInner, enterHooks);
|
|
4039
4047
|
const mode = props.mode;
|
|
4040
4048
|
const previousInner = previous && getInnerChild$1(previous);
|
|
4041
|
-
if (previous && previousInner &&
|
|
4049
|
+
if (previous && previousInner && !isSameVNodeType(previousInner, nextInner) && !isEmptyTransitionChild(previousInner, instance)) {
|
|
4042
4050
|
const leavingHooks = prepareLeavingTransitionHooks(previousInner, props, state, instance);
|
|
4043
4051
|
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);
|
|
4044
4052
|
}
|
|
@@ -6543,7 +6551,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6543
6551
|
if (options.el) return vm.$mount(options.el);
|
|
6544
6552
|
else return vm;
|
|
6545
6553
|
}
|
|
6546
|
-
Vue.version = `2.6.14-compat:3.6.0-rc.
|
|
6554
|
+
Vue.version = `2.6.14-compat:3.6.0-rc.11`;
|
|
6547
6555
|
Vue.config = singletonApp.config;
|
|
6548
6556
|
Vue.use = (plugin, ...options) => {
|
|
6549
6557
|
if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
|
|
@@ -10069,7 +10077,7 @@ function isMemoSame(cached, memo) {
|
|
|
10069
10077
|
}
|
|
10070
10078
|
//#endregion
|
|
10071
10079
|
//#region packages/runtime-core/src/index.ts
|
|
10072
|
-
const version = "3.6.0-rc.
|
|
10080
|
+
const version = "3.6.0-rc.11";
|
|
10073
10081
|
const warn = warn$1;
|
|
10074
10082
|
/**
|
|
10075
10083
|
* Runtime error messages. Only exposed in dev or esm builds.
|