@vue/compat 3.5.0-alpha.1 → 3.5.0-alpha.2
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.cjs.js +68 -52
- package/dist/vue.cjs.prod.js +63 -52
- package/dist/vue.esm-browser.js +67 -50
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +67 -50
- package/dist/vue.global.js +67 -50
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +60 -39
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +60 -39
- package/dist/vue.runtime.global.js +60 -39
- package/dist/vue.runtime.global.prod.js +4 -4
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.0-alpha.
|
|
2
|
+
* @vue/compat v3.5.0-alpha.2
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -81,10 +81,11 @@ const invokeArrayFns = (fns, arg) => {
|
|
|
81
81
|
fns[i](arg);
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
|
-
const def = (obj, key, value) => {
|
|
84
|
+
const def = (obj, key, value, writable = false) => {
|
|
85
85
|
Object.defineProperty(obj, key, {
|
|
86
86
|
configurable: true,
|
|
87
87
|
enumerable: false,
|
|
88
|
+
writable,
|
|
88
89
|
value
|
|
89
90
|
});
|
|
90
91
|
};
|
|
@@ -2029,7 +2030,9 @@ const ErrorCodes = {
|
|
|
2029
2030
|
"ASYNC_COMPONENT_LOADER": 13,
|
|
2030
2031
|
"13": "ASYNC_COMPONENT_LOADER",
|
|
2031
2032
|
"SCHEDULER": 14,
|
|
2032
|
-
"14": "SCHEDULER"
|
|
2033
|
+
"14": "SCHEDULER",
|
|
2034
|
+
"APP_UNMOUNT_CLEANUP": 15,
|
|
2035
|
+
"15": "APP_UNMOUNT_CLEANUP"
|
|
2033
2036
|
};
|
|
2034
2037
|
const ErrorTypeStrings$1 = {
|
|
2035
2038
|
["sp"]: "serverPrefetch hook",
|
|
@@ -2060,7 +2063,8 @@ const ErrorTypeStrings$1 = {
|
|
|
2060
2063
|
[11]: "app warnHandler",
|
|
2061
2064
|
[12]: "ref function",
|
|
2062
2065
|
[13]: "async component loader",
|
|
2063
|
-
[14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."
|
|
2066
|
+
[14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core .",
|
|
2067
|
+
[15]: "app unmount cleanup function"
|
|
2064
2068
|
};
|
|
2065
2069
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
2066
2070
|
try {
|
|
@@ -3286,7 +3290,7 @@ function renderComponentRoot(instance) {
|
|
|
3286
3290
|
!!(process.env.NODE_ENV !== "production") ? {
|
|
3287
3291
|
get attrs() {
|
|
3288
3292
|
markAttrsAccessed();
|
|
3289
|
-
return attrs;
|
|
3293
|
+
return shallowReadonly(attrs);
|
|
3290
3294
|
},
|
|
3291
3295
|
slots,
|
|
3292
3296
|
emit
|
|
@@ -3319,7 +3323,7 @@ function renderComponentRoot(instance) {
|
|
|
3319
3323
|
propsOptions
|
|
3320
3324
|
);
|
|
3321
3325
|
}
|
|
3322
|
-
root = cloneVNode(root, fallthroughAttrs);
|
|
3326
|
+
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
3323
3327
|
} else if (!!(process.env.NODE_ENV !== "production") && !accessedAttrs && root.type !== Comment) {
|
|
3324
3328
|
const allAttrs = Object.keys(attrs);
|
|
3325
3329
|
const eventAttrs = [];
|
|
@@ -3357,10 +3361,15 @@ function renderComponentRoot(instance) {
|
|
|
3357
3361
|
getComponentName(instance.type)
|
|
3358
3362
|
);
|
|
3359
3363
|
}
|
|
3360
|
-
root = cloneVNode(
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
+
root = cloneVNode(
|
|
3365
|
+
root,
|
|
3366
|
+
{
|
|
3367
|
+
class: cls,
|
|
3368
|
+
style
|
|
3369
|
+
},
|
|
3370
|
+
false,
|
|
3371
|
+
true
|
|
3372
|
+
);
|
|
3364
3373
|
}
|
|
3365
3374
|
}
|
|
3366
3375
|
if (vnode.dirs) {
|
|
@@ -3369,7 +3378,7 @@ function renderComponentRoot(instance) {
|
|
|
3369
3378
|
`Runtime directive used on component with non-element root node. The directives will not function as intended.`
|
|
3370
3379
|
);
|
|
3371
3380
|
}
|
|
3372
|
-
root = cloneVNode(root);
|
|
3381
|
+
root = cloneVNode(root, null, false, true);
|
|
3373
3382
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
3374
3383
|
}
|
|
3375
3384
|
if (vnode.transition) {
|
|
@@ -3864,7 +3873,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3864
3873
|
let parentSuspenseId;
|
|
3865
3874
|
const isSuspensible = isVNodeSuspensible(vnode);
|
|
3866
3875
|
if (isSuspensible) {
|
|
3867
|
-
if (parentSuspense
|
|
3876
|
+
if (parentSuspense && parentSuspense.pendingBranch) {
|
|
3868
3877
|
parentSuspenseId = parentSuspense.pendingId;
|
|
3869
3878
|
parentSuspense.deps++;
|
|
3870
3879
|
}
|
|
@@ -4176,8 +4185,8 @@ function setActiveBranch(suspense, branch) {
|
|
|
4176
4185
|
}
|
|
4177
4186
|
}
|
|
4178
4187
|
function isVNodeSuspensible(vnode) {
|
|
4179
|
-
|
|
4180
|
-
return
|
|
4188
|
+
const suspensible = vnode.props && vnode.props.suspensible;
|
|
4189
|
+
return suspensible != null && suspensible !== false;
|
|
4181
4190
|
}
|
|
4182
4191
|
|
|
4183
4192
|
const legacyDirectiveHookMap = {
|
|
@@ -4482,34 +4491,29 @@ function createPathGetter(ctx, path) {
|
|
|
4482
4491
|
return cur;
|
|
4483
4492
|
};
|
|
4484
4493
|
}
|
|
4485
|
-
function traverse(value, depth
|
|
4486
|
-
if (!isObject(value) || value["__v_skip"]) {
|
|
4494
|
+
function traverse(value, depth = Infinity, seen) {
|
|
4495
|
+
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
4487
4496
|
return value;
|
|
4488
4497
|
}
|
|
4489
|
-
if (depth && depth > 0) {
|
|
4490
|
-
if (currentDepth >= depth) {
|
|
4491
|
-
return value;
|
|
4492
|
-
}
|
|
4493
|
-
currentDepth++;
|
|
4494
|
-
}
|
|
4495
4498
|
seen = seen || /* @__PURE__ */ new Set();
|
|
4496
4499
|
if (seen.has(value)) {
|
|
4497
4500
|
return value;
|
|
4498
4501
|
}
|
|
4499
4502
|
seen.add(value);
|
|
4503
|
+
depth--;
|
|
4500
4504
|
if (isRef(value)) {
|
|
4501
|
-
traverse(value.value, depth,
|
|
4505
|
+
traverse(value.value, depth, seen);
|
|
4502
4506
|
} else if (isArray(value)) {
|
|
4503
4507
|
for (let i = 0; i < value.length; i++) {
|
|
4504
|
-
traverse(value[i], depth,
|
|
4508
|
+
traverse(value[i], depth, seen);
|
|
4505
4509
|
}
|
|
4506
4510
|
} else if (isSet(value) || isMap(value)) {
|
|
4507
4511
|
value.forEach((v) => {
|
|
4508
|
-
traverse(v, depth,
|
|
4512
|
+
traverse(v, depth, seen);
|
|
4509
4513
|
});
|
|
4510
4514
|
} else if (isPlainObject(value)) {
|
|
4511
4515
|
for (const key in value) {
|
|
4512
|
-
traverse(value[key], depth,
|
|
4516
|
+
traverse(value[key], depth, seen);
|
|
4513
4517
|
}
|
|
4514
4518
|
}
|
|
4515
4519
|
return value;
|
|
@@ -4655,7 +4659,7 @@ const BaseTransitionImpl = {
|
|
|
4655
4659
|
instance
|
|
4656
4660
|
);
|
|
4657
4661
|
setTransitionHooks(oldInnerChild, leavingHooks);
|
|
4658
|
-
if (mode === "out-in") {
|
|
4662
|
+
if (mode === "out-in" && innerChild.type !== Comment) {
|
|
4659
4663
|
state.isLeaving = true;
|
|
4660
4664
|
leavingHooks.afterLeave = () => {
|
|
4661
4665
|
state.isLeaving = false;
|
|
@@ -5201,7 +5205,7 @@ const KeepAliveImpl = {
|
|
|
5201
5205
|
return () => {
|
|
5202
5206
|
pendingCacheKey = null;
|
|
5203
5207
|
if (!slots.default) {
|
|
5204
|
-
return
|
|
5208
|
+
return null;
|
|
5205
5209
|
}
|
|
5206
5210
|
const children = slots.default();
|
|
5207
5211
|
const rawVNode = children[0];
|
|
@@ -6908,13 +6912,13 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6908
6912
|
return vm;
|
|
6909
6913
|
}
|
|
6910
6914
|
}
|
|
6911
|
-
Vue.version = `2.6.14-compat:${"3.5.0-alpha.
|
|
6915
|
+
Vue.version = `2.6.14-compat:${"3.5.0-alpha.2"}`;
|
|
6912
6916
|
Vue.config = singletonApp.config;
|
|
6913
|
-
Vue.use = (
|
|
6914
|
-
if (
|
|
6915
|
-
|
|
6916
|
-
} else if (isFunction(
|
|
6917
|
-
|
|
6917
|
+
Vue.use = (plugin, ...options) => {
|
|
6918
|
+
if (plugin && isFunction(plugin.install)) {
|
|
6919
|
+
plugin.install(Vue, ...options);
|
|
6920
|
+
} else if (isFunction(plugin)) {
|
|
6921
|
+
plugin(Vue, ...options);
|
|
6918
6922
|
}
|
|
6919
6923
|
return Vue;
|
|
6920
6924
|
};
|
|
@@ -7314,6 +7318,7 @@ function createAppAPI(render, hydrate) {
|
|
|
7314
7318
|
}
|
|
7315
7319
|
const context = createAppContext();
|
|
7316
7320
|
const installedPlugins = /* @__PURE__ */ new WeakSet();
|
|
7321
|
+
const pluginCleanupFns = [];
|
|
7317
7322
|
let isMounted = false;
|
|
7318
7323
|
const app = context.app = {
|
|
7319
7324
|
_uid: uid$1++,
|
|
@@ -7433,8 +7438,21 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7433
7438
|
);
|
|
7434
7439
|
}
|
|
7435
7440
|
},
|
|
7441
|
+
onUnmount(cleanupFn) {
|
|
7442
|
+
if (!!(process.env.NODE_ENV !== "production") && typeof cleanupFn !== "function") {
|
|
7443
|
+
warn$1(
|
|
7444
|
+
`Expected function as first argument to app.onUnmount(), but got ${typeof cleanupFn}`
|
|
7445
|
+
);
|
|
7446
|
+
}
|
|
7447
|
+
pluginCleanupFns.push(cleanupFn);
|
|
7448
|
+
},
|
|
7436
7449
|
unmount() {
|
|
7437
7450
|
if (isMounted) {
|
|
7451
|
+
callWithAsyncErrorHandling(
|
|
7452
|
+
pluginCleanupFns,
|
|
7453
|
+
app._instance,
|
|
7454
|
+
15
|
|
7455
|
+
);
|
|
7438
7456
|
render(null, app._container);
|
|
7439
7457
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
7440
7458
|
app._instance = null;
|
|
@@ -8035,7 +8053,7 @@ const initSlots = (instance, children) => {
|
|
|
8035
8053
|
const type = children._;
|
|
8036
8054
|
if (type) {
|
|
8037
8055
|
extend(slots, children);
|
|
8038
|
-
def(slots, "_", type);
|
|
8056
|
+
def(slots, "_", type, true);
|
|
8039
8057
|
} else {
|
|
8040
8058
|
normalizeObjectSlots(children, slots, instance);
|
|
8041
8059
|
}
|
|
@@ -10921,8 +10939,8 @@ function guardReactiveProps(props) {
|
|
|
10921
10939
|
return null;
|
|
10922
10940
|
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
10923
10941
|
}
|
|
10924
|
-
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
10925
|
-
const { props, ref, patchFlag, children } = vnode;
|
|
10942
|
+
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
10943
|
+
const { props, ref, patchFlag, children, transition } = vnode;
|
|
10926
10944
|
const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
|
|
10927
10945
|
const cloned = {
|
|
10928
10946
|
__v_isVNode: true,
|
|
@@ -10952,7 +10970,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
10952
10970
|
dynamicChildren: vnode.dynamicChildren,
|
|
10953
10971
|
appContext: vnode.appContext,
|
|
10954
10972
|
dirs: vnode.dirs,
|
|
10955
|
-
transition
|
|
10973
|
+
transition,
|
|
10956
10974
|
// These should technically only be non-null on mounted VNodes. However,
|
|
10957
10975
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
10958
10976
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
@@ -10966,6 +10984,9 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
10966
10984
|
ctx: vnode.ctx,
|
|
10967
10985
|
ce: vnode.ce
|
|
10968
10986
|
};
|
|
10987
|
+
if (transition && cloneTransition) {
|
|
10988
|
+
cloned.transition = transition.clone(cloned);
|
|
10989
|
+
}
|
|
10969
10990
|
{
|
|
10970
10991
|
defineLegacyVNodeProperties(cloned);
|
|
10971
10992
|
}
|
|
@@ -11821,7 +11842,7 @@ function isMemoSame(cached, memo) {
|
|
|
11821
11842
|
return true;
|
|
11822
11843
|
}
|
|
11823
11844
|
|
|
11824
|
-
const version = "3.5.0-alpha.
|
|
11845
|
+
const version = "3.5.0-alpha.2";
|
|
11825
11846
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11826
11847
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11827
11848
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.0-alpha.
|
|
2
|
+
* @vue/compat v3.5.0-alpha.2
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -84,10 +84,11 @@ var Vue = (function () {
|
|
|
84
84
|
fns[i](arg);
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
const def = (obj, key, value) => {
|
|
87
|
+
const def = (obj, key, value, writable = false) => {
|
|
88
88
|
Object.defineProperty(obj, key, {
|
|
89
89
|
configurable: true,
|
|
90
90
|
enumerable: false,
|
|
91
|
+
writable,
|
|
91
92
|
value
|
|
92
93
|
});
|
|
93
94
|
};
|
|
@@ -2020,7 +2021,9 @@ var Vue = (function () {
|
|
|
2020
2021
|
"ASYNC_COMPONENT_LOADER": 13,
|
|
2021
2022
|
"13": "ASYNC_COMPONENT_LOADER",
|
|
2022
2023
|
"SCHEDULER": 14,
|
|
2023
|
-
"14": "SCHEDULER"
|
|
2024
|
+
"14": "SCHEDULER",
|
|
2025
|
+
"APP_UNMOUNT_CLEANUP": 15,
|
|
2026
|
+
"15": "APP_UNMOUNT_CLEANUP"
|
|
2024
2027
|
};
|
|
2025
2028
|
const ErrorTypeStrings$1 = {
|
|
2026
2029
|
["sp"]: "serverPrefetch hook",
|
|
@@ -2051,7 +2054,8 @@ var Vue = (function () {
|
|
|
2051
2054
|
[11]: "app warnHandler",
|
|
2052
2055
|
[12]: "ref function",
|
|
2053
2056
|
[13]: "async component loader",
|
|
2054
|
-
[14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."
|
|
2057
|
+
[14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core .",
|
|
2058
|
+
[15]: "app unmount cleanup function"
|
|
2055
2059
|
};
|
|
2056
2060
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
2057
2061
|
try {
|
|
@@ -3272,7 +3276,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3272
3276
|
true ? {
|
|
3273
3277
|
get attrs() {
|
|
3274
3278
|
markAttrsAccessed();
|
|
3275
|
-
return attrs;
|
|
3279
|
+
return shallowReadonly(attrs);
|
|
3276
3280
|
},
|
|
3277
3281
|
slots,
|
|
3278
3282
|
emit
|
|
@@ -3305,7 +3309,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3305
3309
|
propsOptions
|
|
3306
3310
|
);
|
|
3307
3311
|
}
|
|
3308
|
-
root = cloneVNode(root, fallthroughAttrs);
|
|
3312
|
+
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
3309
3313
|
} else if (!accessedAttrs && root.type !== Comment) {
|
|
3310
3314
|
const allAttrs = Object.keys(attrs);
|
|
3311
3315
|
const eventAttrs = [];
|
|
@@ -3343,10 +3347,15 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3343
3347
|
getComponentName(instance.type)
|
|
3344
3348
|
);
|
|
3345
3349
|
}
|
|
3346
|
-
root = cloneVNode(
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
+
root = cloneVNode(
|
|
3351
|
+
root,
|
|
3352
|
+
{
|
|
3353
|
+
class: cls,
|
|
3354
|
+
style
|
|
3355
|
+
},
|
|
3356
|
+
false,
|
|
3357
|
+
true
|
|
3358
|
+
);
|
|
3350
3359
|
}
|
|
3351
3360
|
}
|
|
3352
3361
|
if (vnode.dirs) {
|
|
@@ -3355,7 +3364,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3355
3364
|
`Runtime directive used on component with non-element root node. The directives will not function as intended.`
|
|
3356
3365
|
);
|
|
3357
3366
|
}
|
|
3358
|
-
root = cloneVNode(root);
|
|
3367
|
+
root = cloneVNode(root, null, false, true);
|
|
3359
3368
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
3360
3369
|
}
|
|
3361
3370
|
if (vnode.transition) {
|
|
@@ -3850,7 +3859,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3850
3859
|
let parentSuspenseId;
|
|
3851
3860
|
const isSuspensible = isVNodeSuspensible(vnode);
|
|
3852
3861
|
if (isSuspensible) {
|
|
3853
|
-
if (parentSuspense
|
|
3862
|
+
if (parentSuspense && parentSuspense.pendingBranch) {
|
|
3854
3863
|
parentSuspenseId = parentSuspense.pendingId;
|
|
3855
3864
|
parentSuspense.deps++;
|
|
3856
3865
|
}
|
|
@@ -4162,8 +4171,8 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4162
4171
|
}
|
|
4163
4172
|
}
|
|
4164
4173
|
function isVNodeSuspensible(vnode) {
|
|
4165
|
-
|
|
4166
|
-
return
|
|
4174
|
+
const suspensible = vnode.props && vnode.props.suspensible;
|
|
4175
|
+
return suspensible != null && suspensible !== false;
|
|
4167
4176
|
}
|
|
4168
4177
|
|
|
4169
4178
|
const legacyDirectiveHookMap = {
|
|
@@ -4441,34 +4450,29 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4441
4450
|
return cur;
|
|
4442
4451
|
};
|
|
4443
4452
|
}
|
|
4444
|
-
function traverse(value, depth
|
|
4445
|
-
if (!isObject(value) || value["__v_skip"]) {
|
|
4453
|
+
function traverse(value, depth = Infinity, seen) {
|
|
4454
|
+
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
4446
4455
|
return value;
|
|
4447
4456
|
}
|
|
4448
|
-
if (depth && depth > 0) {
|
|
4449
|
-
if (currentDepth >= depth) {
|
|
4450
|
-
return value;
|
|
4451
|
-
}
|
|
4452
|
-
currentDepth++;
|
|
4453
|
-
}
|
|
4454
4457
|
seen = seen || /* @__PURE__ */ new Set();
|
|
4455
4458
|
if (seen.has(value)) {
|
|
4456
4459
|
return value;
|
|
4457
4460
|
}
|
|
4458
4461
|
seen.add(value);
|
|
4462
|
+
depth--;
|
|
4459
4463
|
if (isRef(value)) {
|
|
4460
|
-
traverse(value.value, depth,
|
|
4464
|
+
traverse(value.value, depth, seen);
|
|
4461
4465
|
} else if (isArray(value)) {
|
|
4462
4466
|
for (let i = 0; i < value.length; i++) {
|
|
4463
|
-
traverse(value[i], depth,
|
|
4467
|
+
traverse(value[i], depth, seen);
|
|
4464
4468
|
}
|
|
4465
4469
|
} else if (isSet(value) || isMap(value)) {
|
|
4466
4470
|
value.forEach((v) => {
|
|
4467
|
-
traverse(v, depth,
|
|
4471
|
+
traverse(v, depth, seen);
|
|
4468
4472
|
});
|
|
4469
4473
|
} else if (isPlainObject(value)) {
|
|
4470
4474
|
for (const key in value) {
|
|
4471
|
-
traverse(value[key], depth,
|
|
4475
|
+
traverse(value[key], depth, seen);
|
|
4472
4476
|
}
|
|
4473
4477
|
}
|
|
4474
4478
|
return value;
|
|
@@ -4614,7 +4618,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
4614
4618
|
instance
|
|
4615
4619
|
);
|
|
4616
4620
|
setTransitionHooks(oldInnerChild, leavingHooks);
|
|
4617
|
-
if (mode === "out-in") {
|
|
4621
|
+
if (mode === "out-in" && innerChild.type !== Comment) {
|
|
4618
4622
|
state.isLeaving = true;
|
|
4619
4623
|
leavingHooks.afterLeave = () => {
|
|
4620
4624
|
state.isLeaving = false;
|
|
@@ -5152,7 +5156,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5152
5156
|
return () => {
|
|
5153
5157
|
pendingCacheKey = null;
|
|
5154
5158
|
if (!slots.default) {
|
|
5155
|
-
return
|
|
5159
|
+
return null;
|
|
5156
5160
|
}
|
|
5157
5161
|
const children = slots.default();
|
|
5158
5162
|
const rawVNode = children[0];
|
|
@@ -6857,13 +6861,13 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6857
6861
|
return vm;
|
|
6858
6862
|
}
|
|
6859
6863
|
}
|
|
6860
|
-
Vue.version = `2.6.14-compat:${"3.5.0-alpha.
|
|
6864
|
+
Vue.version = `2.6.14-compat:${"3.5.0-alpha.2"}`;
|
|
6861
6865
|
Vue.config = singletonApp.config;
|
|
6862
|
-
Vue.use = (
|
|
6863
|
-
if (
|
|
6864
|
-
|
|
6865
|
-
} else if (isFunction(
|
|
6866
|
-
|
|
6866
|
+
Vue.use = (plugin, ...options) => {
|
|
6867
|
+
if (plugin && isFunction(plugin.install)) {
|
|
6868
|
+
plugin.install(Vue, ...options);
|
|
6869
|
+
} else if (isFunction(plugin)) {
|
|
6870
|
+
plugin(Vue, ...options);
|
|
6867
6871
|
}
|
|
6868
6872
|
return Vue;
|
|
6869
6873
|
};
|
|
@@ -7262,6 +7266,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7262
7266
|
}
|
|
7263
7267
|
const context = createAppContext();
|
|
7264
7268
|
const installedPlugins = /* @__PURE__ */ new WeakSet();
|
|
7269
|
+
const pluginCleanupFns = [];
|
|
7265
7270
|
let isMounted = false;
|
|
7266
7271
|
const app = context.app = {
|
|
7267
7272
|
_uid: uid$1++,
|
|
@@ -7379,8 +7384,21 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7379
7384
|
);
|
|
7380
7385
|
}
|
|
7381
7386
|
},
|
|
7387
|
+
onUnmount(cleanupFn) {
|
|
7388
|
+
if (typeof cleanupFn !== "function") {
|
|
7389
|
+
warn$1(
|
|
7390
|
+
`Expected function as first argument to app.onUnmount(), but got ${typeof cleanupFn}`
|
|
7391
|
+
);
|
|
7392
|
+
}
|
|
7393
|
+
pluginCleanupFns.push(cleanupFn);
|
|
7394
|
+
},
|
|
7382
7395
|
unmount() {
|
|
7383
7396
|
if (isMounted) {
|
|
7397
|
+
callWithAsyncErrorHandling(
|
|
7398
|
+
pluginCleanupFns,
|
|
7399
|
+
app._instance,
|
|
7400
|
+
15
|
|
7401
|
+
);
|
|
7384
7402
|
render(null, app._container);
|
|
7385
7403
|
{
|
|
7386
7404
|
app._instance = null;
|
|
@@ -7981,7 +7999,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7981
7999
|
const type = children._;
|
|
7982
8000
|
if (type) {
|
|
7983
8001
|
extend(slots, children);
|
|
7984
|
-
def(slots, "_", type);
|
|
8002
|
+
def(slots, "_", type, true);
|
|
7985
8003
|
} else {
|
|
7986
8004
|
normalizeObjectSlots(children, slots, instance);
|
|
7987
8005
|
}
|
|
@@ -10819,8 +10837,8 @@ Component that was made reactive: `,
|
|
|
10819
10837
|
return null;
|
|
10820
10838
|
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
10821
10839
|
}
|
|
10822
|
-
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
10823
|
-
const { props, ref, patchFlag, children } = vnode;
|
|
10840
|
+
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
10841
|
+
const { props, ref, patchFlag, children, transition } = vnode;
|
|
10824
10842
|
const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
|
|
10825
10843
|
const cloned = {
|
|
10826
10844
|
__v_isVNode: true,
|
|
@@ -10850,7 +10868,7 @@ Component that was made reactive: `,
|
|
|
10850
10868
|
dynamicChildren: vnode.dynamicChildren,
|
|
10851
10869
|
appContext: vnode.appContext,
|
|
10852
10870
|
dirs: vnode.dirs,
|
|
10853
|
-
transition
|
|
10871
|
+
transition,
|
|
10854
10872
|
// These should technically only be non-null on mounted VNodes. However,
|
|
10855
10873
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
10856
10874
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
@@ -10864,6 +10882,9 @@ Component that was made reactive: `,
|
|
|
10864
10882
|
ctx: vnode.ctx,
|
|
10865
10883
|
ce: vnode.ce
|
|
10866
10884
|
};
|
|
10885
|
+
if (transition && cloneTransition) {
|
|
10886
|
+
cloned.transition = transition.clone(cloned);
|
|
10887
|
+
}
|
|
10867
10888
|
{
|
|
10868
10889
|
defineLegacyVNodeProperties(cloned);
|
|
10869
10890
|
}
|
|
@@ -11688,7 +11709,7 @@ Component that was made reactive: `,
|
|
|
11688
11709
|
return true;
|
|
11689
11710
|
}
|
|
11690
11711
|
|
|
11691
|
-
const version = "3.5.0-alpha.
|
|
11712
|
+
const version = "3.5.0-alpha.2";
|
|
11692
11713
|
const warn = warn$1 ;
|
|
11693
11714
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11694
11715
|
const devtools = devtools$1 ;
|