@vue/runtime-core 3.6.0-rc.6 → 3.6.0-rc.8
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-core.cjs.js +20 -37
- package/dist/runtime-core.cjs.prod.js +20 -37
- package/dist/runtime-core.d.ts +1 -1
- package/dist/runtime-core.esm-bundler.js +20 -37
- package/package.json +3 -3
package/dist/runtime-core.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.6.0-rc.
|
|
2
|
+
* @vue/runtime-core v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1317,7 +1317,7 @@ function baseResolveTransitionHooks(context, props, state, instance) {
|
|
|
1317
1317
|
else done();
|
|
1318
1318
|
},
|
|
1319
1319
|
clone(node) {
|
|
1320
|
-
return cloneHooks(node);
|
|
1320
|
+
return cloneHooks ? cloneHooks(node) : hooks;
|
|
1321
1321
|
}
|
|
1322
1322
|
};
|
|
1323
1323
|
return hooks;
|
|
@@ -2155,7 +2155,7 @@ function defineAsyncComponent(source) {
|
|
|
2155
2155
|
name: "AsyncComponentWrapper",
|
|
2156
2156
|
__asyncLoader: load,
|
|
2157
2157
|
__asyncHydrate(el, instance, hydrate) {
|
|
2158
|
-
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy);
|
|
2158
|
+
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, true);
|
|
2159
2159
|
},
|
|
2160
2160
|
get __asyncResolved() {
|
|
2161
2161
|
return getResolvedComp();
|
|
@@ -2274,10 +2274,10 @@ const useAsyncComponentState = (delay, timeout, onError, instance = currentInsta
|
|
|
2274
2274
|
* shared between core and vapor
|
|
2275
2275
|
* @internal
|
|
2276
2276
|
*/
|
|
2277
|
-
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy) {
|
|
2277
|
+
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, skipIfUpdated) {
|
|
2278
2278
|
const wasConnected = el.isConnected;
|
|
2279
2279
|
let patched = false;
|
|
2280
|
-
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
2280
|
+
if (skipIfUpdated) (instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
2281
2281
|
const performHydrate = () => {
|
|
2282
2282
|
if (patched) {
|
|
2283
2283
|
{
|
|
@@ -3120,37 +3120,32 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
3120
3120
|
function withAsyncContext(getAwaitable) {
|
|
3121
3121
|
const ctx = getCurrentGenericInstance();
|
|
3122
3122
|
const inSSRSetup = isInSSRComponentSetup;
|
|
3123
|
-
const restoreAsyncContext = ctx && ctx.restoreAsyncContext ? ctx.restoreAsyncContext.bind(ctx) : void 0;
|
|
3124
3123
|
if (!ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
|
|
3125
3124
|
let awaitable = getAwaitable();
|
|
3126
3125
|
setCurrentInstance(null, void 0);
|
|
3127
3126
|
if (inSSRSetup) setInSSRSetupState(false);
|
|
3128
3127
|
const restore = () => {
|
|
3129
|
-
const
|
|
3128
|
+
const stoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
|
|
3130
3129
|
setCurrentInstance(ctx);
|
|
3131
3130
|
if (inSSRSetup) setInSSRSetupState(true);
|
|
3132
|
-
|
|
3133
|
-
return () => {
|
|
3134
|
-
if (reset) reset();
|
|
3135
|
-
if (resetStoppedScope) resetStoppedScope.reset();
|
|
3136
|
-
};
|
|
3131
|
+
return stoppedScope;
|
|
3137
3132
|
};
|
|
3138
3133
|
const cleanup = () => {
|
|
3139
3134
|
setCurrentInstance(null, void 0);
|
|
3140
3135
|
if (inSSRSetup) setInSSRSetupState(false);
|
|
3141
3136
|
};
|
|
3142
3137
|
if ((0, _vue_shared.isPromise)(awaitable)) awaitable = awaitable.catch((e) => {
|
|
3143
|
-
const
|
|
3138
|
+
const stoppedScope = restore();
|
|
3144
3139
|
Promise.resolve().then(() => Promise.resolve().then(() => {
|
|
3145
|
-
if (
|
|
3140
|
+
if (stoppedScope) stoppedScope.reset();
|
|
3146
3141
|
cleanup();
|
|
3147
3142
|
}));
|
|
3148
3143
|
throw e;
|
|
3149
3144
|
});
|
|
3150
3145
|
return [awaitable, () => {
|
|
3151
|
-
const
|
|
3146
|
+
const stoppedScope = restore();
|
|
3152
3147
|
Promise.resolve().then(() => {
|
|
3153
|
-
if (
|
|
3148
|
+
if (stoppedScope) stoppedScope.reset();
|
|
3154
3149
|
cleanup();
|
|
3155
3150
|
});
|
|
3156
3151
|
}];
|
|
@@ -4985,24 +4980,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4985
4980
|
}
|
|
4986
4981
|
if (moveType !== 2 && shapeFlag & 1 && transition) {
|
|
4987
4982
|
if (moveType === 0) performTransitionEnter(el, transition, () => hostInsert(el, container, anchor), parentSuspense, true);
|
|
4988
|
-
else {
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
else hostInsert(el, container, anchor);
|
|
4993
|
-
};
|
|
4994
|
-
const performLeave = () => {
|
|
4995
|
-
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
4996
|
-
if (el._isLeaving) el[leaveCbKey](true);
|
|
4997
|
-
if (transition.persisted && !wasLeaving) remove();
|
|
4998
|
-
else leave(el, () => {
|
|
4999
|
-
remove();
|
|
5000
|
-
afterLeave && afterLeave();
|
|
5001
|
-
});
|
|
5002
|
-
};
|
|
5003
|
-
if (delayLeave) delayLeave(el, remove, performLeave);
|
|
5004
|
-
else performLeave();
|
|
5005
|
-
}
|
|
4983
|
+
else performTransitionLeave(el, transition, () => {
|
|
4984
|
+
if (vnode.ctx.isUnmounted) hostRemove(el);
|
|
4985
|
+
else hostInsert(el, container, anchor);
|
|
4986
|
+
}, true, true);
|
|
5006
4987
|
} else hostInsert(el, container, anchor);
|
|
5007
4988
|
};
|
|
5008
4989
|
const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
|
|
@@ -5234,13 +5215,15 @@ function performTransitionEnter(el, transition, insert, parentSuspense, force =
|
|
|
5234
5215
|
function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
|
|
5235
5216
|
const performRemove = () => {
|
|
5236
5217
|
remove();
|
|
5237
|
-
if (transition && !transition.persisted && transition.afterLeave) transition.afterLeave();
|
|
5218
|
+
if (transition && (force || !transition.persisted) && transition.afterLeave) transition.afterLeave();
|
|
5238
5219
|
};
|
|
5239
5220
|
if (force || isElement && transition && !transition.persisted) {
|
|
5240
5221
|
const { leave, delayLeave } = transition;
|
|
5241
5222
|
const performLeave = () => {
|
|
5223
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
5242
5224
|
if (el._isLeaving && force) el[leaveCbKey](true);
|
|
5243
|
-
|
|
5225
|
+
if (force && transition.persisted && !wasLeaving) remove();
|
|
5226
|
+
else leave(el, performRemove);
|
|
5244
5227
|
};
|
|
5245
5228
|
if (delayLeave) delayLeave(el, performRemove, performLeave);
|
|
5246
5229
|
else performLeave();
|
|
@@ -6534,7 +6517,7 @@ function isMemoSame(cached, memo) {
|
|
|
6534
6517
|
}
|
|
6535
6518
|
//#endregion
|
|
6536
6519
|
//#region packages/runtime-core/src/index.ts
|
|
6537
|
-
const version = "3.6.0-rc.
|
|
6520
|
+
const version = "3.6.0-rc.8";
|
|
6538
6521
|
const warn = warn$1;
|
|
6539
6522
|
/**
|
|
6540
6523
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.6.0-rc.
|
|
2
|
+
* @vue/runtime-core v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -916,7 +916,7 @@ function baseResolveTransitionHooks(context, props, state, instance) {
|
|
|
916
916
|
else done();
|
|
917
917
|
},
|
|
918
918
|
clone(node) {
|
|
919
|
-
return cloneHooks(node);
|
|
919
|
+
return cloneHooks ? cloneHooks(node) : hooks;
|
|
920
920
|
}
|
|
921
921
|
};
|
|
922
922
|
return hooks;
|
|
@@ -1610,7 +1610,7 @@ function defineAsyncComponent(source) {
|
|
|
1610
1610
|
name: "AsyncComponentWrapper",
|
|
1611
1611
|
__asyncLoader: load,
|
|
1612
1612
|
__asyncHydrate(el, instance, hydrate) {
|
|
1613
|
-
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy);
|
|
1613
|
+
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, true);
|
|
1614
1614
|
},
|
|
1615
1615
|
get __asyncResolved() {
|
|
1616
1616
|
return getResolvedComp();
|
|
@@ -1727,10 +1727,10 @@ const useAsyncComponentState = (delay, timeout, onError, instance = currentInsta
|
|
|
1727
1727
|
* shared between core and vapor
|
|
1728
1728
|
* @internal
|
|
1729
1729
|
*/
|
|
1730
|
-
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy) {
|
|
1730
|
+
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, skipIfUpdated) {
|
|
1731
1731
|
const wasConnected = el.isConnected;
|
|
1732
1732
|
let patched = false;
|
|
1733
|
-
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
1733
|
+
if (skipIfUpdated) (instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
1734
1734
|
const performHydrate = () => {
|
|
1735
1735
|
if (patched) return;
|
|
1736
1736
|
if (!el.parentNode || wasConnected && !el.isConnected) return;
|
|
@@ -2433,36 +2433,31 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
2433
2433
|
function withAsyncContext(getAwaitable) {
|
|
2434
2434
|
const ctx = getCurrentGenericInstance();
|
|
2435
2435
|
const inSSRSetup = isInSSRComponentSetup;
|
|
2436
|
-
const restoreAsyncContext = ctx && ctx.restoreAsyncContext ? ctx.restoreAsyncContext.bind(ctx) : void 0;
|
|
2437
2436
|
let awaitable = getAwaitable();
|
|
2438
2437
|
setCurrentInstance(null, void 0);
|
|
2439
2438
|
if (inSSRSetup) setInSSRSetupState(false);
|
|
2440
2439
|
const restore = () => {
|
|
2441
|
-
const
|
|
2440
|
+
const stoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
|
|
2442
2441
|
setCurrentInstance(ctx);
|
|
2443
2442
|
if (inSSRSetup) setInSSRSetupState(true);
|
|
2444
|
-
|
|
2445
|
-
return () => {
|
|
2446
|
-
if (reset) reset();
|
|
2447
|
-
if (resetStoppedScope) resetStoppedScope.reset();
|
|
2448
|
-
};
|
|
2443
|
+
return stoppedScope;
|
|
2449
2444
|
};
|
|
2450
2445
|
const cleanup = () => {
|
|
2451
2446
|
setCurrentInstance(null, void 0);
|
|
2452
2447
|
if (inSSRSetup) setInSSRSetupState(false);
|
|
2453
2448
|
};
|
|
2454
2449
|
if ((0, _vue_shared.isPromise)(awaitable)) awaitable = awaitable.catch((e) => {
|
|
2455
|
-
const
|
|
2450
|
+
const stoppedScope = restore();
|
|
2456
2451
|
Promise.resolve().then(() => Promise.resolve().then(() => {
|
|
2457
|
-
if (
|
|
2452
|
+
if (stoppedScope) stoppedScope.reset();
|
|
2458
2453
|
cleanup();
|
|
2459
2454
|
}));
|
|
2460
2455
|
throw e;
|
|
2461
2456
|
});
|
|
2462
2457
|
return [awaitable, () => {
|
|
2463
|
-
const
|
|
2458
|
+
const stoppedScope = restore();
|
|
2464
2459
|
Promise.resolve().then(() => {
|
|
2465
|
-
if (
|
|
2460
|
+
if (stoppedScope) stoppedScope.reset();
|
|
2466
2461
|
cleanup();
|
|
2467
2462
|
});
|
|
2468
2463
|
}];
|
|
@@ -3908,24 +3903,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3908
3903
|
}
|
|
3909
3904
|
if (moveType !== 2 && shapeFlag & 1 && transition) {
|
|
3910
3905
|
if (moveType === 0) performTransitionEnter(el, transition, () => hostInsert(el, container, anchor), parentSuspense, true);
|
|
3911
|
-
else {
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
else hostInsert(el, container, anchor);
|
|
3916
|
-
};
|
|
3917
|
-
const performLeave = () => {
|
|
3918
|
-
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
3919
|
-
if (el._isLeaving) el[leaveCbKey](true);
|
|
3920
|
-
if (transition.persisted && !wasLeaving) remove();
|
|
3921
|
-
else leave(el, () => {
|
|
3922
|
-
remove();
|
|
3923
|
-
afterLeave && afterLeave();
|
|
3924
|
-
});
|
|
3925
|
-
};
|
|
3926
|
-
if (delayLeave) delayLeave(el, remove, performLeave);
|
|
3927
|
-
else performLeave();
|
|
3928
|
-
}
|
|
3906
|
+
else performTransitionLeave(el, transition, () => {
|
|
3907
|
+
if (vnode.ctx.isUnmounted) hostRemove(el);
|
|
3908
|
+
else hostInsert(el, container, anchor);
|
|
3909
|
+
}, true, true);
|
|
3929
3910
|
} else hostInsert(el, container, anchor);
|
|
3930
3911
|
};
|
|
3931
3912
|
const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
|
|
@@ -4145,13 +4126,15 @@ function performTransitionEnter(el, transition, insert, parentSuspense, force =
|
|
|
4145
4126
|
function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
|
|
4146
4127
|
const performRemove = () => {
|
|
4147
4128
|
remove();
|
|
4148
|
-
if (transition && !transition.persisted && transition.afterLeave) transition.afterLeave();
|
|
4129
|
+
if (transition && (force || !transition.persisted) && transition.afterLeave) transition.afterLeave();
|
|
4149
4130
|
};
|
|
4150
4131
|
if (force || isElement && transition && !transition.persisted) {
|
|
4151
4132
|
const { leave, delayLeave } = transition;
|
|
4152
4133
|
const performLeave = () => {
|
|
4134
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
4153
4135
|
if (el._isLeaving && force) el[leaveCbKey](true);
|
|
4154
|
-
|
|
4136
|
+
if (force && transition.persisted && !wasLeaving) remove();
|
|
4137
|
+
else leave(el, performRemove);
|
|
4155
4138
|
};
|
|
4156
4139
|
if (delayLeave) delayLeave(el, performRemove, performLeave);
|
|
4157
4140
|
else performLeave();
|
|
@@ -5127,7 +5110,7 @@ function isMemoSame(cached, memo) {
|
|
|
5127
5110
|
}
|
|
5128
5111
|
//#endregion
|
|
5129
5112
|
//#region packages/runtime-core/src/index.ts
|
|
5130
|
-
const version = "3.6.0-rc.
|
|
5113
|
+
const version = "3.6.0-rc.8";
|
|
5131
5114
|
const warn = _vue_shared.NOOP;
|
|
5132
5115
|
/**
|
|
5133
5116
|
* Runtime error messages. Only exposed in dev or esm builds.
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -624,7 +624,7 @@ export interface TransitionHooksContext {
|
|
|
624
624
|
setLeavingNodeCache: (node: any) => void;
|
|
625
625
|
unsetLeavingNodeCache: (node: any) => void;
|
|
626
626
|
earlyRemove: () => void;
|
|
627
|
-
cloneHooks
|
|
627
|
+
cloneHooks?: (node: any) => TransitionHooks;
|
|
628
628
|
}
|
|
629
629
|
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: GenericComponentInstance, postClone?: (hooks: TransitionHooks) => void): TransitionHooks;
|
|
630
630
|
export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): TransitionHooks;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.6.0-rc.
|
|
2
|
+
* @vue/runtime-core v3.6.0-rc.8
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1328,7 +1328,7 @@ function baseResolveTransitionHooks(context, props, state, instance) {
|
|
|
1328
1328
|
else done();
|
|
1329
1329
|
},
|
|
1330
1330
|
clone(node) {
|
|
1331
|
-
return cloneHooks(node);
|
|
1331
|
+
return cloneHooks ? cloneHooks(node) : hooks;
|
|
1332
1332
|
}
|
|
1333
1333
|
};
|
|
1334
1334
|
return hooks;
|
|
@@ -2206,7 +2206,7 @@ function defineAsyncComponent(source) {
|
|
|
2206
2206
|
name: "AsyncComponentWrapper",
|
|
2207
2207
|
__asyncLoader: load,
|
|
2208
2208
|
__asyncHydrate(el, instance, hydrate) {
|
|
2209
|
-
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy);
|
|
2209
|
+
performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, true);
|
|
2210
2210
|
},
|
|
2211
2211
|
get __asyncResolved() {
|
|
2212
2212
|
return getResolvedComp();
|
|
@@ -2325,10 +2325,10 @@ const useAsyncComponentState = (delay, timeout, onError, instance = currentInsta
|
|
|
2325
2325
|
* shared between core and vapor
|
|
2326
2326
|
* @internal
|
|
2327
2327
|
*/
|
|
2328
|
-
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy) {
|
|
2328
|
+
function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydrateStrategy, skipIfUpdated) {
|
|
2329
2329
|
const wasConnected = el.isConnected;
|
|
2330
2330
|
let patched = false;
|
|
2331
|
-
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
2331
|
+
if (skipIfUpdated) (instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
2332
2332
|
const performHydrate = () => {
|
|
2333
2333
|
if (patched) {
|
|
2334
2334
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
@@ -3171,37 +3171,32 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
3171
3171
|
function withAsyncContext(getAwaitable) {
|
|
3172
3172
|
const ctx = getCurrentGenericInstance();
|
|
3173
3173
|
const inSSRSetup = isInSSRComponentSetup;
|
|
3174
|
-
const restoreAsyncContext = ctx && ctx.restoreAsyncContext ? ctx.restoreAsyncContext.bind(ctx) : void 0;
|
|
3175
3174
|
if (!!(process.env.NODE_ENV !== "production") && !ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
|
|
3176
3175
|
let awaitable = getAwaitable();
|
|
3177
3176
|
setCurrentInstance(null, void 0);
|
|
3178
3177
|
if (inSSRSetup) setInSSRSetupState(false);
|
|
3179
3178
|
const restore = () => {
|
|
3180
|
-
const
|
|
3179
|
+
const stoppedScope = ctx && !ctx.scope.active ? ctx.scope : void 0;
|
|
3181
3180
|
setCurrentInstance(ctx);
|
|
3182
3181
|
if (inSSRSetup) setInSSRSetupState(true);
|
|
3183
|
-
|
|
3184
|
-
return () => {
|
|
3185
|
-
if (reset) reset();
|
|
3186
|
-
if (resetStoppedScope) resetStoppedScope.reset();
|
|
3187
|
-
};
|
|
3182
|
+
return stoppedScope;
|
|
3188
3183
|
};
|
|
3189
3184
|
const cleanup = () => {
|
|
3190
3185
|
setCurrentInstance(null, void 0);
|
|
3191
3186
|
if (inSSRSetup) setInSSRSetupState(false);
|
|
3192
3187
|
};
|
|
3193
3188
|
if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
|
|
3194
|
-
const
|
|
3189
|
+
const stoppedScope = restore();
|
|
3195
3190
|
Promise.resolve().then(() => Promise.resolve().then(() => {
|
|
3196
|
-
if (
|
|
3191
|
+
if (stoppedScope) stoppedScope.reset();
|
|
3197
3192
|
cleanup();
|
|
3198
3193
|
}));
|
|
3199
3194
|
throw e;
|
|
3200
3195
|
});
|
|
3201
3196
|
return [awaitable, () => {
|
|
3202
|
-
const
|
|
3197
|
+
const stoppedScope = restore();
|
|
3203
3198
|
Promise.resolve().then(() => {
|
|
3204
|
-
if (
|
|
3199
|
+
if (stoppedScope) stoppedScope.reset();
|
|
3205
3200
|
cleanup();
|
|
3206
3201
|
});
|
|
3207
3202
|
}];
|
|
@@ -5086,24 +5081,10 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5086
5081
|
}
|
|
5087
5082
|
if (moveType !== 2 && shapeFlag & 1 && transition) {
|
|
5088
5083
|
if (moveType === 0) performTransitionEnter(el, transition, () => hostInsert(el, container, anchor), parentSuspense, true);
|
|
5089
|
-
else {
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
else hostInsert(el, container, anchor);
|
|
5094
|
-
};
|
|
5095
|
-
const performLeave = () => {
|
|
5096
|
-
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
5097
|
-
if (el._isLeaving) el[leaveCbKey](true);
|
|
5098
|
-
if (transition.persisted && !wasLeaving) remove();
|
|
5099
|
-
else leave(el, () => {
|
|
5100
|
-
remove();
|
|
5101
|
-
afterLeave && afterLeave();
|
|
5102
|
-
});
|
|
5103
|
-
};
|
|
5104
|
-
if (delayLeave) delayLeave(el, remove, performLeave);
|
|
5105
|
-
else performLeave();
|
|
5106
|
-
}
|
|
5084
|
+
else performTransitionLeave(el, transition, () => {
|
|
5085
|
+
if (vnode.ctx.isUnmounted) hostRemove(el);
|
|
5086
|
+
else hostInsert(el, container, anchor);
|
|
5087
|
+
}, true, true);
|
|
5107
5088
|
} else hostInsert(el, container, anchor);
|
|
5108
5089
|
};
|
|
5109
5090
|
const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
|
|
@@ -5335,13 +5316,15 @@ function performTransitionEnter(el, transition, insert, parentSuspense, force =
|
|
|
5335
5316
|
function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
|
|
5336
5317
|
const performRemove = () => {
|
|
5337
5318
|
remove();
|
|
5338
|
-
if (transition && !transition.persisted && transition.afterLeave) transition.afterLeave();
|
|
5319
|
+
if (transition && (force || !transition.persisted) && transition.afterLeave) transition.afterLeave();
|
|
5339
5320
|
};
|
|
5340
5321
|
if (force || isElement && transition && !transition.persisted) {
|
|
5341
5322
|
const { leave, delayLeave } = transition;
|
|
5342
5323
|
const performLeave = () => {
|
|
5324
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
5343
5325
|
if (el._isLeaving && force) el[leaveCbKey](true);
|
|
5344
|
-
|
|
5326
|
+
if (force && transition.persisted && !wasLeaving) remove();
|
|
5327
|
+
else leave(el, performRemove);
|
|
5345
5328
|
};
|
|
5346
5329
|
if (delayLeave) delayLeave(el, performRemove, performLeave);
|
|
5347
5330
|
else performLeave();
|
|
@@ -6656,7 +6639,7 @@ function isMemoSame(cached, memo) {
|
|
|
6656
6639
|
}
|
|
6657
6640
|
//#endregion
|
|
6658
6641
|
//#region packages/runtime-core/src/index.ts
|
|
6659
|
-
const version = "3.6.0-rc.
|
|
6642
|
+
const version = "3.6.0-rc.8";
|
|
6660
6643
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
6661
6644
|
/**
|
|
6662
6645
|
* Runtime error messages. Only exposed in dev or esm builds.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.6.0-rc.
|
|
3
|
+
"version": "3.6.0-rc.8",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/
|
|
50
|
-
"@vue/
|
|
49
|
+
"@vue/shared": "3.6.0-rc.8",
|
|
50
|
+
"@vue/reactivity": "3.6.0-rc.8"
|
|
51
51
|
}
|
|
52
52
|
}
|