@vue/compat 3.5.17 → 3.5.19
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 +138 -113
- package/dist/vue.cjs.prod.js +98 -96
- package/dist/vue.esm-browser.js +134 -112
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +135 -113
- package/dist/vue.global.js +134 -112
- package/dist/vue.global.prod.js +8 -8
- package/dist/vue.runtime.esm-browser.js +121 -93
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +122 -94
- package/dist/vue.runtime.global.js +121 -93
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.19
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -59,10 +59,10 @@ var Vue = (function () {
|
|
|
59
59
|
);
|
|
60
60
|
const cacheStringFunction = (fn) => {
|
|
61
61
|
const cache = /* @__PURE__ */ Object.create(null);
|
|
62
|
-
return (str) => {
|
|
62
|
+
return ((str) => {
|
|
63
63
|
const hit = cache[str];
|
|
64
64
|
return hit || (cache[str] = fn(str));
|
|
65
|
-
};
|
|
65
|
+
});
|
|
66
66
|
};
|
|
67
67
|
const camelizeRE = /-(\w)/g;
|
|
68
68
|
const camelize = cacheStringFunction(
|
|
@@ -314,6 +314,24 @@ var Vue = (function () {
|
|
|
314
314
|
);
|
|
315
315
|
};
|
|
316
316
|
|
|
317
|
+
function normalizeCssVarValue(value) {
|
|
318
|
+
if (value == null) {
|
|
319
|
+
return "initial";
|
|
320
|
+
}
|
|
321
|
+
if (typeof value === "string") {
|
|
322
|
+
return value === "" ? " " : value;
|
|
323
|
+
}
|
|
324
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
325
|
+
{
|
|
326
|
+
console.warn(
|
|
327
|
+
"[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:",
|
|
328
|
+
value
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return String(value);
|
|
333
|
+
}
|
|
334
|
+
|
|
317
335
|
function warn$2(msg, ...args) {
|
|
318
336
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
319
337
|
}
|
|
@@ -1277,7 +1295,13 @@ var Vue = (function () {
|
|
|
1277
1295
|
}
|
|
1278
1296
|
if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
|
|
1279
1297
|
if (isOldValueReadonly) {
|
|
1280
|
-
|
|
1298
|
+
{
|
|
1299
|
+
warn$2(
|
|
1300
|
+
`Set operation on key "${String(key)}" failed: target is readonly.`,
|
|
1301
|
+
target[key]
|
|
1302
|
+
);
|
|
1303
|
+
}
|
|
1304
|
+
return true;
|
|
1281
1305
|
} else {
|
|
1282
1306
|
oldValue.value = value;
|
|
1283
1307
|
return true;
|
|
@@ -2644,7 +2668,9 @@ var Vue = (function () {
|
|
|
2644
2668
|
}
|
|
2645
2669
|
instance.renderCache = [];
|
|
2646
2670
|
isHmrUpdating = true;
|
|
2647
|
-
instance.
|
|
2671
|
+
if (!(instance.job.flags & 8)) {
|
|
2672
|
+
instance.update();
|
|
2673
|
+
}
|
|
2648
2674
|
isHmrUpdating = false;
|
|
2649
2675
|
});
|
|
2650
2676
|
}
|
|
@@ -4236,7 +4262,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4236
4262
|
const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;
|
|
4237
4263
|
const setupState = owner.setupState;
|
|
4238
4264
|
const rawSetupState = toRaw(setupState);
|
|
4239
|
-
const canSetSetupRef = setupState === EMPTY_OBJ ?
|
|
4265
|
+
const canSetSetupRef = setupState === EMPTY_OBJ ? NO : (key) => {
|
|
4240
4266
|
{
|
|
4241
4267
|
if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {
|
|
4242
4268
|
warn$1(
|
|
@@ -4249,6 +4275,9 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4249
4275
|
}
|
|
4250
4276
|
return hasOwn(rawSetupState, key);
|
|
4251
4277
|
};
|
|
4278
|
+
const canSetRef = (ref2) => {
|
|
4279
|
+
return !knownTemplateRefs.has(ref2);
|
|
4280
|
+
};
|
|
4252
4281
|
if (oldRef != null && oldRef !== ref) {
|
|
4253
4282
|
if (isString(oldRef)) {
|
|
4254
4283
|
refs[oldRef] = null;
|
|
@@ -4256,7 +4285,11 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4256
4285
|
setupState[oldRef] = null;
|
|
4257
4286
|
}
|
|
4258
4287
|
} else if (isRef(oldRef)) {
|
|
4259
|
-
oldRef
|
|
4288
|
+
if (canSetRef(oldRef)) {
|
|
4289
|
+
oldRef.value = null;
|
|
4290
|
+
}
|
|
4291
|
+
const oldRawRefAtom = oldRawRef;
|
|
4292
|
+
if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;
|
|
4260
4293
|
}
|
|
4261
4294
|
}
|
|
4262
4295
|
if (isFunction(ref)) {
|
|
@@ -4267,7 +4300,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4267
4300
|
if (_isString || _isRef) {
|
|
4268
4301
|
const doSet = () => {
|
|
4269
4302
|
if (rawRef.f) {
|
|
4270
|
-
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
4303
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];
|
|
4271
4304
|
if (isUnmount) {
|
|
4272
4305
|
isArray(existing) && remove(existing, refValue);
|
|
4273
4306
|
} else {
|
|
@@ -4278,8 +4311,11 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4278
4311
|
setupState[ref] = refs[ref];
|
|
4279
4312
|
}
|
|
4280
4313
|
} else {
|
|
4281
|
-
|
|
4282
|
-
if (
|
|
4314
|
+
const newVal = [refValue];
|
|
4315
|
+
if (canSetRef(ref)) {
|
|
4316
|
+
ref.value = newVal;
|
|
4317
|
+
}
|
|
4318
|
+
if (rawRef.k) refs[rawRef.k] = newVal;
|
|
4283
4319
|
}
|
|
4284
4320
|
} else if (!existing.includes(refValue)) {
|
|
4285
4321
|
existing.push(refValue);
|
|
@@ -4291,7 +4327,9 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4291
4327
|
setupState[ref] = value;
|
|
4292
4328
|
}
|
|
4293
4329
|
} else if (_isRef) {
|
|
4294
|
-
ref
|
|
4330
|
+
if (canSetRef(ref)) {
|
|
4331
|
+
ref.value = value;
|
|
4332
|
+
}
|
|
4295
4333
|
if (rawRef.k) refs[rawRef.k] = value;
|
|
4296
4334
|
} else {
|
|
4297
4335
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
@@ -4912,10 +4950,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4912
4950
|
if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {
|
|
4913
4951
|
const cssVars = instance.getCssVars();
|
|
4914
4952
|
for (const key in cssVars) {
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
String(cssVars[key])
|
|
4918
|
-
);
|
|
4953
|
+
const value = normalizeCssVarValue(cssVars[key]);
|
|
4954
|
+
expectedMap.set(`--${getEscapedCssVarName(key)}`, value);
|
|
4919
4955
|
}
|
|
4920
4956
|
}
|
|
4921
4957
|
if (vnode === root && instance.parent) {
|
|
@@ -5104,16 +5140,19 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5104
5140
|
__asyncLoader: load,
|
|
5105
5141
|
__asyncHydrate(el, instance, hydrate) {
|
|
5106
5142
|
let patched = false;
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5143
|
+
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
5144
|
+
const performHydrate = () => {
|
|
5145
|
+
if (patched) {
|
|
5146
|
+
{
|
|
5110
5147
|
warn$1(
|
|
5111
|
-
`Skipping lazy hydration for component '${getComponentName(resolvedComp)}': it was updated before lazy hydration performed.`
|
|
5148
|
+
`Skipping lazy hydration for component '${getComponentName(resolvedComp) || resolvedComp.__file}': it was updated before lazy hydration performed.`
|
|
5112
5149
|
);
|
|
5113
|
-
return;
|
|
5114
5150
|
}
|
|
5115
|
-
|
|
5116
|
-
}
|
|
5151
|
+
return;
|
|
5152
|
+
}
|
|
5153
|
+
hydrate();
|
|
5154
|
+
};
|
|
5155
|
+
const doHydrate = hydrateStrategy ? () => {
|
|
5117
5156
|
const teardown = hydrateStrategy(
|
|
5118
5157
|
performHydrate,
|
|
5119
5158
|
(cb) => forEachElement(el, cb)
|
|
@@ -5121,8 +5160,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5121
5160
|
if (teardown) {
|
|
5122
5161
|
(instance.bum || (instance.bum = [])).push(teardown);
|
|
5123
5162
|
}
|
|
5124
|
-
|
|
5125
|
-
} : hydrate;
|
|
5163
|
+
} : performHydrate;
|
|
5126
5164
|
if (resolvedComp) {
|
|
5127
5165
|
doHydrate();
|
|
5128
5166
|
} else {
|
|
@@ -6383,10 +6421,10 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6383
6421
|
return true;
|
|
6384
6422
|
},
|
|
6385
6423
|
has({
|
|
6386
|
-
_: { data, setupState, accessCache, ctx, appContext, propsOptions }
|
|
6424
|
+
_: { data, setupState, accessCache, ctx, appContext, propsOptions, type }
|
|
6387
6425
|
}, key) {
|
|
6388
|
-
let normalizedProps;
|
|
6389
|
-
return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key);
|
|
6426
|
+
let normalizedProps, cssModules;
|
|
6427
|
+
return !!(accessCache[key] || data !== EMPTY_OBJ && key[0] !== "$" && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key) || (cssModules = type.__cssModules) && cssModules[key]);
|
|
6390
6428
|
},
|
|
6391
6429
|
defineProperty(target, key, descriptor) {
|
|
6392
6430
|
if (descriptor.get != null) {
|
|
@@ -6538,15 +6576,15 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6538
6576
|
return null;
|
|
6539
6577
|
}
|
|
6540
6578
|
function useSlots() {
|
|
6541
|
-
return getContext().slots;
|
|
6579
|
+
return getContext("useSlots").slots;
|
|
6542
6580
|
}
|
|
6543
6581
|
function useAttrs() {
|
|
6544
|
-
return getContext().attrs;
|
|
6582
|
+
return getContext("useAttrs").attrs;
|
|
6545
6583
|
}
|
|
6546
|
-
function getContext() {
|
|
6584
|
+
function getContext(calledFunctionName) {
|
|
6547
6585
|
const i = getCurrentInstance();
|
|
6548
6586
|
if (!i) {
|
|
6549
|
-
warn$1(
|
|
6587
|
+
warn$1(`${calledFunctionName}() called without active instance.`);
|
|
6550
6588
|
}
|
|
6551
6589
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
6552
6590
|
}
|
|
@@ -6805,7 +6843,8 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6805
6843
|
expose.forEach((key) => {
|
|
6806
6844
|
Object.defineProperty(exposed, key, {
|
|
6807
6845
|
get: () => publicThis[key],
|
|
6808
|
-
set: (val) => publicThis[key] = val
|
|
6846
|
+
set: (val) => publicThis[key] = val,
|
|
6847
|
+
enumerable: true
|
|
6809
6848
|
});
|
|
6810
6849
|
});
|
|
6811
6850
|
} else if (!instance.exposed) {
|
|
@@ -7127,7 +7166,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7127
7166
|
return vm;
|
|
7128
7167
|
}
|
|
7129
7168
|
}
|
|
7130
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7169
|
+
Vue.version = `2.6.14-compat:${"3.5.19"}`;
|
|
7131
7170
|
Vue.config = singletonApp.config;
|
|
7132
7171
|
Vue.use = (plugin, ...options) => {
|
|
7133
7172
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -7141,22 +7180,22 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7141
7180
|
singletonApp.mixin(m);
|
|
7142
7181
|
return Vue;
|
|
7143
7182
|
};
|
|
7144
|
-
Vue.component = (name, comp) => {
|
|
7183
|
+
Vue.component = ((name, comp) => {
|
|
7145
7184
|
if (comp) {
|
|
7146
7185
|
singletonApp.component(name, comp);
|
|
7147
7186
|
return Vue;
|
|
7148
7187
|
} else {
|
|
7149
7188
|
return singletonApp.component(name);
|
|
7150
7189
|
}
|
|
7151
|
-
};
|
|
7152
|
-
Vue.directive = (name, dir) => {
|
|
7190
|
+
});
|
|
7191
|
+
Vue.directive = ((name, dir) => {
|
|
7153
7192
|
if (dir) {
|
|
7154
7193
|
singletonApp.directive(name, dir);
|
|
7155
7194
|
return Vue;
|
|
7156
7195
|
} else {
|
|
7157
7196
|
return singletonApp.directive(name);
|
|
7158
7197
|
}
|
|
7159
|
-
};
|
|
7198
|
+
});
|
|
7160
7199
|
Vue.options = { _base: Vue };
|
|
7161
7200
|
let cid = 1;
|
|
7162
7201
|
Vue.cid = cid;
|
|
@@ -7219,14 +7258,14 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7219
7258
|
assertCompatEnabled("GLOBAL_OBSERVABLE", null);
|
|
7220
7259
|
return reactive(target);
|
|
7221
7260
|
};
|
|
7222
|
-
Vue.filter = (name, filter) => {
|
|
7261
|
+
Vue.filter = ((name, filter) => {
|
|
7223
7262
|
if (filter) {
|
|
7224
7263
|
singletonApp.filter(name, filter);
|
|
7225
7264
|
return Vue;
|
|
7226
7265
|
} else {
|
|
7227
7266
|
return singletonApp.filter(name);
|
|
7228
7267
|
}
|
|
7229
|
-
};
|
|
7268
|
+
});
|
|
7230
7269
|
const util = {
|
|
7231
7270
|
warn: warn$1 ,
|
|
7232
7271
|
extend,
|
|
@@ -7719,7 +7758,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7719
7758
|
}
|
|
7720
7759
|
}
|
|
7721
7760
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
7722
|
-
const instance =
|
|
7761
|
+
const instance = getCurrentInstance();
|
|
7723
7762
|
if (instance || currentApp) {
|
|
7724
7763
|
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
7725
7764
|
if (provides && key in provides) {
|
|
@@ -7734,7 +7773,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7734
7773
|
}
|
|
7735
7774
|
}
|
|
7736
7775
|
function hasInjectionContext() {
|
|
7737
|
-
return !!(
|
|
7776
|
+
return !!(getCurrentInstance() || currentApp);
|
|
7738
7777
|
}
|
|
7739
7778
|
|
|
7740
7779
|
function createPropsDefaultThis(instance, rawProps, propKey) {
|
|
@@ -8220,7 +8259,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8220
8259
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
|
8221
8260
|
}
|
|
8222
8261
|
|
|
8223
|
-
const isInternalKey = (key) => key
|
|
8262
|
+
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
8224
8263
|
const normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
|
|
8225
8264
|
const normalizeSlot = (key, rawSlot, ctx) => {
|
|
8226
8265
|
if (rawSlot._n) {
|
|
@@ -8274,8 +8313,6 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8274
8313
|
const initSlots = (instance, children, optimized) => {
|
|
8275
8314
|
const slots = instance.slots = createInternalObject();
|
|
8276
8315
|
if (instance.vnode.shapeFlag & 32) {
|
|
8277
|
-
const cacheIndexes = children.__;
|
|
8278
|
-
if (cacheIndexes) def(slots, "__", cacheIndexes, true);
|
|
8279
8316
|
const type = children._;
|
|
8280
8317
|
if (type) {
|
|
8281
8318
|
assignSlots(slots, children, optimized);
|
|
@@ -8336,12 +8373,10 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8336
8373
|
if (instance.appContext.config.performance && isSupported()) {
|
|
8337
8374
|
const startTag = `vue-${type}-${instance.uid}`;
|
|
8338
8375
|
const endTag = startTag + `:end`;
|
|
8376
|
+
const measureName = `<${formatComponentName(instance, instance.type)}> ${type}`;
|
|
8339
8377
|
perf.mark(endTag);
|
|
8340
|
-
perf.measure(
|
|
8341
|
-
|
|
8342
|
-
startTag,
|
|
8343
|
-
endTag
|
|
8344
|
-
);
|
|
8378
|
+
perf.measure(measureName, startTag, endTag);
|
|
8379
|
+
perf.clearMeasures(measureName);
|
|
8345
8380
|
perf.clearMarks(startTag);
|
|
8346
8381
|
perf.clearMarks(endTag);
|
|
8347
8382
|
}
|
|
@@ -8963,6 +8998,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8963
8998
|
if (!initialVNode.el) {
|
|
8964
8999
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
8965
9000
|
processCommentNode(null, placeholder, container, anchor);
|
|
9001
|
+
initialVNode.placeholder = placeholder.el;
|
|
8966
9002
|
}
|
|
8967
9003
|
} else {
|
|
8968
9004
|
setupRenderEffect(
|
|
@@ -9488,7 +9524,11 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9488
9524
|
for (i = toBePatched - 1; i >= 0; i--) {
|
|
9489
9525
|
const nextIndex = s2 + i;
|
|
9490
9526
|
const nextChild = c2[nextIndex];
|
|
9491
|
-
const
|
|
9527
|
+
const anchorVNode = c2[nextIndex + 1];
|
|
9528
|
+
const anchor = nextIndex + 1 < l2 ? (
|
|
9529
|
+
// #13559, fallback to el placeholder for unresolved async component
|
|
9530
|
+
anchorVNode.el || anchorVNode.placeholder
|
|
9531
|
+
) : parentAnchor;
|
|
9492
9532
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
9493
9533
|
patch(
|
|
9494
9534
|
null,
|
|
@@ -9553,6 +9593,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9553
9593
|
}
|
|
9554
9594
|
};
|
|
9555
9595
|
const performLeave = () => {
|
|
9596
|
+
if (el._isLeaving) {
|
|
9597
|
+
el[leaveCbKey](
|
|
9598
|
+
true
|
|
9599
|
+
/* cancelled */
|
|
9600
|
+
);
|
|
9601
|
+
}
|
|
9556
9602
|
leave(el, () => {
|
|
9557
9603
|
remove2();
|
|
9558
9604
|
afterLeave && afterLeave();
|
|
@@ -9698,27 +9744,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9698
9744
|
if (instance.type.__hmrId) {
|
|
9699
9745
|
unregisterHMR(instance);
|
|
9700
9746
|
}
|
|
9701
|
-
const {
|
|
9702
|
-
bum,
|
|
9703
|
-
scope,
|
|
9704
|
-
job,
|
|
9705
|
-
subTree,
|
|
9706
|
-
um,
|
|
9707
|
-
m,
|
|
9708
|
-
a,
|
|
9709
|
-
parent,
|
|
9710
|
-
slots: { __: slotCacheKeys }
|
|
9711
|
-
} = instance;
|
|
9747
|
+
const { bum, scope, job, subTree, um, m, a } = instance;
|
|
9712
9748
|
invalidateMount(m);
|
|
9713
9749
|
invalidateMount(a);
|
|
9714
9750
|
if (bum) {
|
|
9715
9751
|
invokeArrayFns(bum);
|
|
9716
9752
|
}
|
|
9717
|
-
if (parent && isArray(slotCacheKeys)) {
|
|
9718
|
-
slotCacheKeys.forEach((v) => {
|
|
9719
|
-
parent.renderCache[v] = void 0;
|
|
9720
|
-
});
|
|
9721
|
-
}
|
|
9722
9753
|
if (isCompatEnabled("INSTANCE_EVENT_HOOKS", instance)) {
|
|
9723
9754
|
instance.emit("hook:beforeDestroy");
|
|
9724
9755
|
}
|
|
@@ -9739,12 +9770,6 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9739
9770
|
queuePostRenderEffect(() => {
|
|
9740
9771
|
instance.isUnmounted = true;
|
|
9741
9772
|
}, parentSuspense);
|
|
9742
|
-
if (parentSuspense && parentSuspense.pendingBranch && !parentSuspense.isUnmounted && instance.asyncDep && !instance.asyncResolved && instance.suspenseId === parentSuspense.pendingId) {
|
|
9743
|
-
parentSuspense.deps--;
|
|
9744
|
-
if (parentSuspense.deps === 0) {
|
|
9745
|
-
parentSuspense.resolve();
|
|
9746
|
-
}
|
|
9747
|
-
}
|
|
9748
9773
|
{
|
|
9749
9774
|
devtoolsComponentRemoved(instance);
|
|
9750
9775
|
}
|
|
@@ -9845,7 +9870,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9845
9870
|
if (!shallow && c2.patchFlag !== -2)
|
|
9846
9871
|
traverseStaticChildren(c1, c2);
|
|
9847
9872
|
}
|
|
9848
|
-
if (c2.type === Text
|
|
9873
|
+
if (c2.type === Text && // avoid cached text nodes retaining detached dom nodes
|
|
9874
|
+
c2.patchFlag !== -1) {
|
|
9849
9875
|
c2.el = c1.el;
|
|
9850
9876
|
}
|
|
9851
9877
|
if (c2.type === Comment && !c2.el) {
|
|
@@ -11455,6 +11481,7 @@ Component that was made reactive: `,
|
|
|
11455
11481
|
suspense: vnode.suspense,
|
|
11456
11482
|
ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
|
|
11457
11483
|
ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
|
|
11484
|
+
placeholder: vnode.placeholder,
|
|
11458
11485
|
el: vnode.el,
|
|
11459
11486
|
anchor: vnode.anchor,
|
|
11460
11487
|
ctx: vnode.ctx,
|
|
@@ -12247,7 +12274,7 @@ Component that was made reactive: `,
|
|
|
12247
12274
|
return true;
|
|
12248
12275
|
}
|
|
12249
12276
|
|
|
12250
|
-
const version = "3.5.
|
|
12277
|
+
const version = "3.5.19";
|
|
12251
12278
|
const warn = warn$1 ;
|
|
12252
12279
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12253
12280
|
const devtools = devtools$1 ;
|
|
@@ -12785,8 +12812,9 @@ Component that was made reactive: `,
|
|
|
12785
12812
|
const style = el.style;
|
|
12786
12813
|
let cssText = "";
|
|
12787
12814
|
for (const key in vars) {
|
|
12788
|
-
|
|
12789
|
-
|
|
12815
|
+
const value = normalizeCssVarValue(vars[key]);
|
|
12816
|
+
style.setProperty(`--${key}`, value);
|
|
12817
|
+
cssText += `--${key}: ${value};`;
|
|
12790
12818
|
}
|
|
12791
12819
|
style[CSS_VAR_TEXT] = cssText;
|
|
12792
12820
|
}
|
|
@@ -13172,10 +13200,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13172
13200
|
VueCustomElement.def = Comp;
|
|
13173
13201
|
return VueCustomElement;
|
|
13174
13202
|
}
|
|
13175
|
-
|
|
13176
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
13203
|
+
|
|
13204
|
+
const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
13177
13205
|
return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
|
|
13178
|
-
};
|
|
13206
|
+
});
|
|
13179
13207
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
13180
13208
|
};
|
|
13181
13209
|
class VueElement extends BaseClass {
|
|
@@ -13999,13 +14027,13 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13999
14027
|
const withModifiers = (fn, modifiers) => {
|
|
14000
14028
|
const cache = fn._withMods || (fn._withMods = {});
|
|
14001
14029
|
const cacheKey = modifiers.join(".");
|
|
14002
|
-
return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
|
|
14030
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
|
|
14003
14031
|
for (let i = 0; i < modifiers.length; i++) {
|
|
14004
14032
|
const guard = modifierGuards[modifiers[i]];
|
|
14005
14033
|
if (guard && guard(event, modifiers)) return;
|
|
14006
14034
|
}
|
|
14007
14035
|
return fn(event, ...args);
|
|
14008
|
-
});
|
|
14036
|
+
}));
|
|
14009
14037
|
};
|
|
14010
14038
|
const keyNames = {
|
|
14011
14039
|
esc: "escape",
|
|
@@ -14035,7 +14063,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
14035
14063
|
}
|
|
14036
14064
|
const cache = fn._withKeys || (fn._withKeys = {});
|
|
14037
14065
|
const cacheKey = modifiers.join(".");
|
|
14038
|
-
return cache[cacheKey] || (cache[cacheKey] = (event) => {
|
|
14066
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event) => {
|
|
14039
14067
|
if (!("key" in event)) {
|
|
14040
14068
|
return;
|
|
14041
14069
|
}
|
|
@@ -14065,7 +14093,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
14065
14093
|
}
|
|
14066
14094
|
}
|
|
14067
14095
|
}
|
|
14068
|
-
});
|
|
14096
|
+
}));
|
|
14069
14097
|
};
|
|
14070
14098
|
|
|
14071
14099
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
@@ -14079,13 +14107,13 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
14079
14107
|
enabledHydration = true;
|
|
14080
14108
|
return renderer;
|
|
14081
14109
|
}
|
|
14082
|
-
const render = (...args) => {
|
|
14110
|
+
const render = ((...args) => {
|
|
14083
14111
|
ensureRenderer().render(...args);
|
|
14084
|
-
};
|
|
14085
|
-
const hydrate = (...args) => {
|
|
14112
|
+
});
|
|
14113
|
+
const hydrate = ((...args) => {
|
|
14086
14114
|
ensureHydrationRenderer().hydrate(...args);
|
|
14087
|
-
};
|
|
14088
|
-
const createApp = (...args) => {
|
|
14115
|
+
});
|
|
14116
|
+
const createApp = ((...args) => {
|
|
14089
14117
|
const app = ensureRenderer().createApp(...args);
|
|
14090
14118
|
{
|
|
14091
14119
|
injectNativeTagCheck(app);
|
|
@@ -14122,8 +14150,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
14122
14150
|
return proxy;
|
|
14123
14151
|
};
|
|
14124
14152
|
return app;
|
|
14125
|
-
};
|
|
14126
|
-
const createSSRApp = (...args) => {
|
|
14153
|
+
});
|
|
14154
|
+
const createSSRApp = ((...args) => {
|
|
14127
14155
|
const app = ensureHydrationRenderer().createApp(...args);
|
|
14128
14156
|
{
|
|
14129
14157
|
injectNativeTagCheck(app);
|
|
@@ -14137,7 +14165,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
14137
14165
|
}
|
|
14138
14166
|
};
|
|
14139
14167
|
return app;
|
|
14140
|
-
};
|
|
14168
|
+
});
|
|
14141
14169
|
function resolveRootNamespace(container) {
|
|
14142
14170
|
if (container instanceof SVGElement) {
|
|
14143
14171
|
return "svg";
|
|
@@ -14405,13 +14433,13 @@ Make sure to use the production build (*.prod.js) when deploying for production.
|
|
|
14405
14433
|
}
|
|
14406
14434
|
|
|
14407
14435
|
const Vue = createCompatVue();
|
|
14408
|
-
Vue.compile = () => {
|
|
14436
|
+
Vue.compile = (() => {
|
|
14409
14437
|
{
|
|
14410
14438
|
warn(
|
|
14411
14439
|
`Runtime compilation is not supported in this build of Vue.` + (` Use "vue.global.js" instead.` )
|
|
14412
14440
|
);
|
|
14413
14441
|
}
|
|
14414
|
-
};
|
|
14442
|
+
});
|
|
14415
14443
|
|
|
14416
14444
|
return Vue;
|
|
14417
14445
|
|