@vue/compat 3.4.15 → 3.4.16
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 +93 -62
- package/dist/vue.cjs.prod.js +84 -58
- package/dist/vue.esm-browser.js +88 -65
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +88 -65
- package/dist/vue.global.js +88 -65
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +60 -53
- package/dist/vue.runtime.esm-browser.prod.js +6 -6
- package/dist/vue.runtime.esm-bundler.js +60 -53
- package/dist/vue.runtime.global.js +60 -53
- package/dist/vue.runtime.global.prod.js +6 -6
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.16
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -407,7 +407,7 @@ class ReactiveEffect {
|
|
|
407
407
|
/**
|
|
408
408
|
* @internal
|
|
409
409
|
*/
|
|
410
|
-
this._dirtyLevel =
|
|
410
|
+
this._dirtyLevel = 4;
|
|
411
411
|
/**
|
|
412
412
|
* @internal
|
|
413
413
|
*/
|
|
@@ -427,26 +427,27 @@ class ReactiveEffect {
|
|
|
427
427
|
recordEffectScope(this, scope);
|
|
428
428
|
}
|
|
429
429
|
get dirty() {
|
|
430
|
-
if (this._dirtyLevel ===
|
|
430
|
+
if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
|
|
431
|
+
this._dirtyLevel = 1;
|
|
431
432
|
pauseTracking();
|
|
432
433
|
for (let i = 0; i < this._depsLength; i++) {
|
|
433
434
|
const dep = this.deps[i];
|
|
434
435
|
if (dep.computed) {
|
|
435
436
|
triggerComputed(dep.computed);
|
|
436
|
-
if (this._dirtyLevel >=
|
|
437
|
+
if (this._dirtyLevel >= 4) {
|
|
437
438
|
break;
|
|
438
439
|
}
|
|
439
440
|
}
|
|
440
441
|
}
|
|
441
|
-
if (this._dirtyLevel
|
|
442
|
+
if (this._dirtyLevel === 1) {
|
|
442
443
|
this._dirtyLevel = 0;
|
|
443
444
|
}
|
|
444
445
|
resetTracking();
|
|
445
446
|
}
|
|
446
|
-
return this._dirtyLevel >=
|
|
447
|
+
return this._dirtyLevel >= 4;
|
|
447
448
|
}
|
|
448
449
|
set dirty(v) {
|
|
449
|
-
this._dirtyLevel = v ?
|
|
450
|
+
this._dirtyLevel = v ? 4 : 0;
|
|
450
451
|
}
|
|
451
452
|
run() {
|
|
452
453
|
this._dirtyLevel = 0;
|
|
@@ -486,7 +487,7 @@ function preCleanupEffect(effect2) {
|
|
|
486
487
|
effect2._depsLength = 0;
|
|
487
488
|
}
|
|
488
489
|
function postCleanupEffect(effect2) {
|
|
489
|
-
if (effect2.deps
|
|
490
|
+
if (effect2.deps.length > effect2._depsLength) {
|
|
490
491
|
for (let i = effect2._depsLength; i < effect2.deps.length; i++) {
|
|
491
492
|
cleanupDepEffect(effect2.deps[i], effect2);
|
|
492
493
|
}
|
|
@@ -569,29 +570,26 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
569
570
|
var _a;
|
|
570
571
|
pauseScheduling();
|
|
571
572
|
for (const effect2 of dep.keys()) {
|
|
572
|
-
|
|
573
|
-
|
|
573
|
+
let tracking;
|
|
574
|
+
if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
575
|
+
effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
|
|
574
576
|
effect2._dirtyLevel = dirtyLevel;
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
577
|
+
}
|
|
578
|
+
if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
579
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
580
|
+
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
581
|
+
}
|
|
582
|
+
effect2.trigger();
|
|
583
|
+
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 2) {
|
|
584
|
+
effect2._shouldSchedule = false;
|
|
585
|
+
if (effect2.scheduler) {
|
|
586
|
+
queueEffectSchedulers.push(effect2.scheduler);
|
|
579
587
|
}
|
|
580
|
-
effect2.trigger();
|
|
581
588
|
}
|
|
582
589
|
}
|
|
583
590
|
}
|
|
584
|
-
scheduleEffects(dep);
|
|
585
591
|
resetScheduling();
|
|
586
592
|
}
|
|
587
|
-
function scheduleEffects(dep) {
|
|
588
|
-
for (const effect2 of dep.keys()) {
|
|
589
|
-
if (effect2.scheduler && effect2._shouldSchedule && (!effect2._runnings || effect2.allowRecurse) && dep.get(effect2) === effect2._trackId) {
|
|
590
|
-
effect2._shouldSchedule = false;
|
|
591
|
-
queueEffectSchedulers.push(effect2.scheduler);
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
593
|
|
|
596
594
|
const createDep = (cleanup, computed) => {
|
|
597
595
|
const dep = /* @__PURE__ */ new Map();
|
|
@@ -674,7 +672,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
674
672
|
if (dep) {
|
|
675
673
|
triggerEffects(
|
|
676
674
|
dep,
|
|
677
|
-
|
|
675
|
+
4,
|
|
678
676
|
!!(process.env.NODE_ENV !== "production") ? {
|
|
679
677
|
target,
|
|
680
678
|
type,
|
|
@@ -1259,7 +1257,9 @@ function toRaw(observed) {
|
|
|
1259
1257
|
return raw ? toRaw(raw) : observed;
|
|
1260
1258
|
}
|
|
1261
1259
|
function markRaw(value) {
|
|
1262
|
-
|
|
1260
|
+
if (Object.isExtensible(value)) {
|
|
1261
|
+
def(value, "__v_skip", true);
|
|
1262
|
+
}
|
|
1263
1263
|
return value;
|
|
1264
1264
|
}
|
|
1265
1265
|
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
@@ -1273,8 +1273,10 @@ class ComputedRefImpl {
|
|
|
1273
1273
|
this["__v_isReadonly"] = false;
|
|
1274
1274
|
this.effect = new ReactiveEffect(
|
|
1275
1275
|
() => getter(this._value),
|
|
1276
|
-
() => triggerRefValue(
|
|
1277
|
-
|
|
1276
|
+
() => triggerRefValue(
|
|
1277
|
+
this,
|
|
1278
|
+
this.effect._dirtyLevel === 2 ? 2 : 3
|
|
1279
|
+
)
|
|
1278
1280
|
);
|
|
1279
1281
|
this.effect.computed = this;
|
|
1280
1282
|
this.effect.active = this._cacheable = !isSSR;
|
|
@@ -1282,14 +1284,12 @@ class ComputedRefImpl {
|
|
|
1282
1284
|
}
|
|
1283
1285
|
get value() {
|
|
1284
1286
|
const self = toRaw(this);
|
|
1285
|
-
if (!self._cacheable || self.effect.dirty) {
|
|
1286
|
-
|
|
1287
|
-
triggerRefValue(self, 2);
|
|
1288
|
-
}
|
|
1287
|
+
if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
|
|
1288
|
+
triggerRefValue(self, 4);
|
|
1289
1289
|
}
|
|
1290
1290
|
trackRefValue(self);
|
|
1291
|
-
if (self.effect._dirtyLevel >=
|
|
1292
|
-
triggerRefValue(self,
|
|
1291
|
+
if (self.effect._dirtyLevel >= 2) {
|
|
1292
|
+
triggerRefValue(self, 2);
|
|
1293
1293
|
}
|
|
1294
1294
|
return self._value;
|
|
1295
1295
|
}
|
|
@@ -1327,14 +1327,15 @@ function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
|
|
1329
1329
|
function trackRefValue(ref2) {
|
|
1330
|
+
var _a;
|
|
1330
1331
|
if (shouldTrack && activeEffect) {
|
|
1331
1332
|
ref2 = toRaw(ref2);
|
|
1332
1333
|
trackEffect(
|
|
1333
1334
|
activeEffect,
|
|
1334
|
-
ref2.dep
|
|
1335
|
+
(_a = ref2.dep) != null ? _a : ref2.dep = createDep(
|
|
1335
1336
|
() => ref2.dep = void 0,
|
|
1336
1337
|
ref2 instanceof ComputedRefImpl ? ref2 : void 0
|
|
1337
|
-
)
|
|
1338
|
+
),
|
|
1338
1339
|
!!(process.env.NODE_ENV !== "production") ? {
|
|
1339
1340
|
target: ref2,
|
|
1340
1341
|
type: "get",
|
|
@@ -1343,7 +1344,7 @@ function trackRefValue(ref2) {
|
|
|
1343
1344
|
);
|
|
1344
1345
|
}
|
|
1345
1346
|
}
|
|
1346
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1347
|
+
function triggerRefValue(ref2, dirtyLevel = 4, newVal) {
|
|
1347
1348
|
ref2 = toRaw(ref2);
|
|
1348
1349
|
const dep = ref2.dep;
|
|
1349
1350
|
if (dep) {
|
|
@@ -1392,12 +1393,12 @@ class RefImpl {
|
|
|
1392
1393
|
if (hasChanged(newVal, this._rawValue)) {
|
|
1393
1394
|
this._rawValue = newVal;
|
|
1394
1395
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1395
|
-
triggerRefValue(this,
|
|
1396
|
+
triggerRefValue(this, 4, newVal);
|
|
1396
1397
|
}
|
|
1397
1398
|
}
|
|
1398
1399
|
}
|
|
1399
1400
|
function triggerRef(ref2) {
|
|
1400
|
-
triggerRefValue(ref2,
|
|
1401
|
+
triggerRefValue(ref2, 4, !!(process.env.NODE_ENV !== "production") ? ref2.value : void 0);
|
|
1401
1402
|
}
|
|
1402
1403
|
function unref(ref2) {
|
|
1403
1404
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -6474,7 +6475,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6474
6475
|
return vm;
|
|
6475
6476
|
}
|
|
6476
6477
|
}
|
|
6477
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6478
|
+
Vue.version = `2.6.14-compat:${"3.4.16"}`;
|
|
6478
6479
|
Vue.config = singletonApp.config;
|
|
6479
6480
|
Vue.use = (p, ...options) => {
|
|
6480
6481
|
if (p && isFunction(p.install)) {
|
|
@@ -7022,11 +7023,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7022
7023
|
return app;
|
|
7023
7024
|
},
|
|
7024
7025
|
runWithContext(fn) {
|
|
7026
|
+
const lastApp = currentApp;
|
|
7025
7027
|
currentApp = app;
|
|
7026
7028
|
try {
|
|
7027
7029
|
return fn();
|
|
7028
7030
|
} finally {
|
|
7029
|
-
currentApp =
|
|
7031
|
+
currentApp = lastApp;
|
|
7030
7032
|
}
|
|
7031
7033
|
}
|
|
7032
7034
|
};
|
|
@@ -7684,10 +7686,9 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7684
7686
|
} else {
|
|
7685
7687
|
const _isString = isString(ref);
|
|
7686
7688
|
const _isRef = isRef(ref);
|
|
7687
|
-
const isVFor = rawRef.f;
|
|
7688
7689
|
if (_isString || _isRef) {
|
|
7689
7690
|
const doSet = () => {
|
|
7690
|
-
if (
|
|
7691
|
+
if (rawRef.f) {
|
|
7691
7692
|
const existing = _isString ? hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
7692
7693
|
if (isUnmount) {
|
|
7693
7694
|
isArray(existing) && remove(existing, refValue);
|
|
@@ -7720,11 +7721,11 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7720
7721
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7721
7722
|
}
|
|
7722
7723
|
};
|
|
7723
|
-
if (
|
|
7724
|
-
doSet();
|
|
7725
|
-
} else {
|
|
7724
|
+
if (value) {
|
|
7726
7725
|
doSet.id = -1;
|
|
7727
7726
|
queuePostRenderEffect(doSet, parentSuspense);
|
|
7727
|
+
} else {
|
|
7728
|
+
doSet();
|
|
7728
7729
|
}
|
|
7729
7730
|
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7730
7731
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
@@ -8023,7 +8024,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
8023
8024
|
if (props) {
|
|
8024
8025
|
if (!!(process.env.NODE_ENV !== "production") || forcePatch || !optimized || patchFlag & (16 | 32)) {
|
|
8025
8026
|
for (const key in props) {
|
|
8026
|
-
if (!!(process.env.NODE_ENV !== "production") && propHasMismatch(el, key, props[key], vnode)) {
|
|
8027
|
+
if (!!(process.env.NODE_ENV !== "production") && propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
8027
8028
|
hasMismatch = true;
|
|
8028
8029
|
}
|
|
8029
8030
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -8208,7 +8209,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8208
8209
|
};
|
|
8209
8210
|
return [hydrate, hydrateNode];
|
|
8210
8211
|
}
|
|
8211
|
-
function propHasMismatch(el, key, clientValue, vnode) {
|
|
8212
|
+
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
8213
|
+
var _a;
|
|
8212
8214
|
let mismatchType;
|
|
8213
8215
|
let mismatchKey;
|
|
8214
8216
|
let actual;
|
|
@@ -8231,6 +8233,10 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8231
8233
|
}
|
|
8232
8234
|
}
|
|
8233
8235
|
}
|
|
8236
|
+
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
8237
|
+
for (const key2 in cssVars) {
|
|
8238
|
+
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
8239
|
+
}
|
|
8234
8240
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
8235
8241
|
mismatchType = mismatchKey = "style";
|
|
8236
8242
|
}
|
|
@@ -11375,7 +11381,7 @@ function isMemoSame(cached, memo) {
|
|
|
11375
11381
|
return true;
|
|
11376
11382
|
}
|
|
11377
11383
|
|
|
11378
|
-
const version = "3.4.
|
|
11384
|
+
const version = "3.4.16";
|
|
11379
11385
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11380
11386
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11381
11387
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -11804,7 +11810,7 @@ const vShow = {
|
|
|
11804
11810
|
}
|
|
11805
11811
|
},
|
|
11806
11812
|
updated(el, { value, oldValue }, { transition }) {
|
|
11807
|
-
if (!value === !oldValue)
|
|
11813
|
+
if (!value === !oldValue && el.style.display === el[vShowOldKey])
|
|
11808
11814
|
return;
|
|
11809
11815
|
if (transition) {
|
|
11810
11816
|
if (value) {
|
|
@@ -11850,6 +11856,9 @@ function useCssVars(getter) {
|
|
|
11850
11856
|
document.querySelectorAll(`[data-v-owner="${instance.uid}"]`)
|
|
11851
11857
|
).forEach((node) => setVarsOnNode(node, vars));
|
|
11852
11858
|
};
|
|
11859
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
11860
|
+
instance.getCssVars = () => getter(instance.proxy);
|
|
11861
|
+
}
|
|
11853
11862
|
const setVars = () => {
|
|
11854
11863
|
const vars = getter(instance.proxy);
|
|
11855
11864
|
setVarsOnVNode(instance.subTree, vars);
|
|
@@ -11930,6 +11939,7 @@ function patchStyle(el, prev, next) {
|
|
|
11930
11939
|
}
|
|
11931
11940
|
}
|
|
11932
11941
|
if (vShowOldKey in el) {
|
|
11942
|
+
el[vShowOldKey] = style.display;
|
|
11933
11943
|
style.display = currentDisplay;
|
|
11934
11944
|
}
|
|
11935
11945
|
}
|
|
@@ -12779,9 +12789,6 @@ function setSelected(el, value, oldValue, number) {
|
|
|
12779
12789
|
);
|
|
12780
12790
|
return;
|
|
12781
12791
|
}
|
|
12782
|
-
if (isArrayValue && looseEqual(value, oldValue)) {
|
|
12783
|
-
return;
|
|
12784
|
-
}
|
|
12785
12792
|
for (let i = 0, l = el.options.length; i < l; i++) {
|
|
12786
12793
|
const option = el.options[i];
|
|
12787
12794
|
const optionValue = getValue(option);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.16
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -410,7 +410,7 @@ var Vue = (function () {
|
|
|
410
410
|
/**
|
|
411
411
|
* @internal
|
|
412
412
|
*/
|
|
413
|
-
this._dirtyLevel =
|
|
413
|
+
this._dirtyLevel = 4;
|
|
414
414
|
/**
|
|
415
415
|
* @internal
|
|
416
416
|
*/
|
|
@@ -430,26 +430,27 @@ var Vue = (function () {
|
|
|
430
430
|
recordEffectScope(this, scope);
|
|
431
431
|
}
|
|
432
432
|
get dirty() {
|
|
433
|
-
if (this._dirtyLevel ===
|
|
433
|
+
if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
|
|
434
|
+
this._dirtyLevel = 1;
|
|
434
435
|
pauseTracking();
|
|
435
436
|
for (let i = 0; i < this._depsLength; i++) {
|
|
436
437
|
const dep = this.deps[i];
|
|
437
438
|
if (dep.computed) {
|
|
438
439
|
triggerComputed(dep.computed);
|
|
439
|
-
if (this._dirtyLevel >=
|
|
440
|
+
if (this._dirtyLevel >= 4) {
|
|
440
441
|
break;
|
|
441
442
|
}
|
|
442
443
|
}
|
|
443
444
|
}
|
|
444
|
-
if (this._dirtyLevel
|
|
445
|
+
if (this._dirtyLevel === 1) {
|
|
445
446
|
this._dirtyLevel = 0;
|
|
446
447
|
}
|
|
447
448
|
resetTracking();
|
|
448
449
|
}
|
|
449
|
-
return this._dirtyLevel >=
|
|
450
|
+
return this._dirtyLevel >= 4;
|
|
450
451
|
}
|
|
451
452
|
set dirty(v) {
|
|
452
|
-
this._dirtyLevel = v ?
|
|
453
|
+
this._dirtyLevel = v ? 4 : 0;
|
|
453
454
|
}
|
|
454
455
|
run() {
|
|
455
456
|
this._dirtyLevel = 0;
|
|
@@ -489,7 +490,7 @@ var Vue = (function () {
|
|
|
489
490
|
effect2._depsLength = 0;
|
|
490
491
|
}
|
|
491
492
|
function postCleanupEffect(effect2) {
|
|
492
|
-
if (effect2.deps
|
|
493
|
+
if (effect2.deps.length > effect2._depsLength) {
|
|
493
494
|
for (let i = effect2._depsLength; i < effect2.deps.length; i++) {
|
|
494
495
|
cleanupDepEffect(effect2.deps[i], effect2);
|
|
495
496
|
}
|
|
@@ -572,29 +573,26 @@ var Vue = (function () {
|
|
|
572
573
|
var _a;
|
|
573
574
|
pauseScheduling();
|
|
574
575
|
for (const effect2 of dep.keys()) {
|
|
575
|
-
|
|
576
|
-
|
|
576
|
+
let tracking;
|
|
577
|
+
if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
578
|
+
effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
|
|
577
579
|
effect2._dirtyLevel = dirtyLevel;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
580
|
+
}
|
|
581
|
+
if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
582
|
+
{
|
|
583
|
+
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
584
|
+
}
|
|
585
|
+
effect2.trigger();
|
|
586
|
+
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 2) {
|
|
587
|
+
effect2._shouldSchedule = false;
|
|
588
|
+
if (effect2.scheduler) {
|
|
589
|
+
queueEffectSchedulers.push(effect2.scheduler);
|
|
582
590
|
}
|
|
583
|
-
effect2.trigger();
|
|
584
591
|
}
|
|
585
592
|
}
|
|
586
593
|
}
|
|
587
|
-
scheduleEffects(dep);
|
|
588
594
|
resetScheduling();
|
|
589
595
|
}
|
|
590
|
-
function scheduleEffects(dep) {
|
|
591
|
-
for (const effect2 of dep.keys()) {
|
|
592
|
-
if (effect2.scheduler && effect2._shouldSchedule && (!effect2._runnings || effect2.allowRecurse) && dep.get(effect2) === effect2._trackId) {
|
|
593
|
-
effect2._shouldSchedule = false;
|
|
594
|
-
queueEffectSchedulers.push(effect2.scheduler);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
596
|
|
|
599
597
|
const createDep = (cleanup, computed) => {
|
|
600
598
|
const dep = /* @__PURE__ */ new Map();
|
|
@@ -677,7 +675,7 @@ var Vue = (function () {
|
|
|
677
675
|
if (dep) {
|
|
678
676
|
triggerEffects(
|
|
679
677
|
dep,
|
|
680
|
-
|
|
678
|
+
4,
|
|
681
679
|
{
|
|
682
680
|
target,
|
|
683
681
|
type,
|
|
@@ -1262,7 +1260,9 @@ var Vue = (function () {
|
|
|
1262
1260
|
return raw ? toRaw(raw) : observed;
|
|
1263
1261
|
}
|
|
1264
1262
|
function markRaw(value) {
|
|
1265
|
-
|
|
1263
|
+
if (Object.isExtensible(value)) {
|
|
1264
|
+
def(value, "__v_skip", true);
|
|
1265
|
+
}
|
|
1266
1266
|
return value;
|
|
1267
1267
|
}
|
|
1268
1268
|
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
@@ -1276,8 +1276,10 @@ var Vue = (function () {
|
|
|
1276
1276
|
this["__v_isReadonly"] = false;
|
|
1277
1277
|
this.effect = new ReactiveEffect(
|
|
1278
1278
|
() => getter(this._value),
|
|
1279
|
-
() => triggerRefValue(
|
|
1280
|
-
|
|
1279
|
+
() => triggerRefValue(
|
|
1280
|
+
this,
|
|
1281
|
+
this.effect._dirtyLevel === 2 ? 2 : 3
|
|
1282
|
+
)
|
|
1281
1283
|
);
|
|
1282
1284
|
this.effect.computed = this;
|
|
1283
1285
|
this.effect.active = this._cacheable = !isSSR;
|
|
@@ -1285,14 +1287,12 @@ var Vue = (function () {
|
|
|
1285
1287
|
}
|
|
1286
1288
|
get value() {
|
|
1287
1289
|
const self = toRaw(this);
|
|
1288
|
-
if (!self._cacheable || self.effect.dirty) {
|
|
1289
|
-
|
|
1290
|
-
triggerRefValue(self, 2);
|
|
1291
|
-
}
|
|
1290
|
+
if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
|
|
1291
|
+
triggerRefValue(self, 4);
|
|
1292
1292
|
}
|
|
1293
1293
|
trackRefValue(self);
|
|
1294
|
-
if (self.effect._dirtyLevel >=
|
|
1295
|
-
triggerRefValue(self,
|
|
1294
|
+
if (self.effect._dirtyLevel >= 2) {
|
|
1295
|
+
triggerRefValue(self, 2);
|
|
1296
1296
|
}
|
|
1297
1297
|
return self._value;
|
|
1298
1298
|
}
|
|
@@ -1330,14 +1330,15 @@ var Vue = (function () {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
1332
|
function trackRefValue(ref2) {
|
|
1333
|
+
var _a;
|
|
1333
1334
|
if (shouldTrack && activeEffect) {
|
|
1334
1335
|
ref2 = toRaw(ref2);
|
|
1335
1336
|
trackEffect(
|
|
1336
1337
|
activeEffect,
|
|
1337
|
-
ref2.dep
|
|
1338
|
+
(_a = ref2.dep) != null ? _a : ref2.dep = createDep(
|
|
1338
1339
|
() => ref2.dep = void 0,
|
|
1339
1340
|
ref2 instanceof ComputedRefImpl ? ref2 : void 0
|
|
1340
|
-
)
|
|
1341
|
+
),
|
|
1341
1342
|
{
|
|
1342
1343
|
target: ref2,
|
|
1343
1344
|
type: "get",
|
|
@@ -1346,7 +1347,7 @@ var Vue = (function () {
|
|
|
1346
1347
|
);
|
|
1347
1348
|
}
|
|
1348
1349
|
}
|
|
1349
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1350
|
+
function triggerRefValue(ref2, dirtyLevel = 4, newVal) {
|
|
1350
1351
|
ref2 = toRaw(ref2);
|
|
1351
1352
|
const dep = ref2.dep;
|
|
1352
1353
|
if (dep) {
|
|
@@ -1395,12 +1396,12 @@ var Vue = (function () {
|
|
|
1395
1396
|
if (hasChanged(newVal, this._rawValue)) {
|
|
1396
1397
|
this._rawValue = newVal;
|
|
1397
1398
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1398
|
-
triggerRefValue(this,
|
|
1399
|
+
triggerRefValue(this, 4, newVal);
|
|
1399
1400
|
}
|
|
1400
1401
|
}
|
|
1401
1402
|
}
|
|
1402
1403
|
function triggerRef(ref2) {
|
|
1403
|
-
triggerRefValue(ref2,
|
|
1404
|
+
triggerRefValue(ref2, 4, ref2.value );
|
|
1404
1405
|
}
|
|
1405
1406
|
function unref(ref2) {
|
|
1406
1407
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -6433,7 +6434,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6433
6434
|
return vm;
|
|
6434
6435
|
}
|
|
6435
6436
|
}
|
|
6436
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6437
|
+
Vue.version = `2.6.14-compat:${"3.4.16"}`;
|
|
6437
6438
|
Vue.config = singletonApp.config;
|
|
6438
6439
|
Vue.use = (p, ...options) => {
|
|
6439
6440
|
if (p && isFunction(p.install)) {
|
|
@@ -6978,11 +6979,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6978
6979
|
return app;
|
|
6979
6980
|
},
|
|
6980
6981
|
runWithContext(fn) {
|
|
6982
|
+
const lastApp = currentApp;
|
|
6981
6983
|
currentApp = app;
|
|
6982
6984
|
try {
|
|
6983
6985
|
return fn();
|
|
6984
6986
|
} finally {
|
|
6985
|
-
currentApp =
|
|
6987
|
+
currentApp = lastApp;
|
|
6986
6988
|
}
|
|
6987
6989
|
}
|
|
6988
6990
|
};
|
|
@@ -7640,10 +7642,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7640
7642
|
} else {
|
|
7641
7643
|
const _isString = isString(ref);
|
|
7642
7644
|
const _isRef = isRef(ref);
|
|
7643
|
-
const isVFor = rawRef.f;
|
|
7644
7645
|
if (_isString || _isRef) {
|
|
7645
7646
|
const doSet = () => {
|
|
7646
|
-
if (
|
|
7647
|
+
if (rawRef.f) {
|
|
7647
7648
|
const existing = _isString ? hasOwn(setupState, ref) ? setupState[ref] : refs[ref] : ref.value;
|
|
7648
7649
|
if (isUnmount) {
|
|
7649
7650
|
isArray(existing) && remove(existing, refValue);
|
|
@@ -7676,11 +7677,11 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7676
7677
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
7677
7678
|
}
|
|
7678
7679
|
};
|
|
7679
|
-
if (
|
|
7680
|
-
doSet();
|
|
7681
|
-
} else {
|
|
7680
|
+
if (value) {
|
|
7682
7681
|
doSet.id = -1;
|
|
7683
7682
|
queuePostRenderEffect(doSet, parentSuspense);
|
|
7683
|
+
} else {
|
|
7684
|
+
doSet();
|
|
7684
7685
|
}
|
|
7685
7686
|
} else {
|
|
7686
7687
|
warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
@@ -7979,7 +7980,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
7979
7980
|
if (props) {
|
|
7980
7981
|
{
|
|
7981
7982
|
for (const key in props) {
|
|
7982
|
-
if (propHasMismatch(el, key, props[key], vnode)) {
|
|
7983
|
+
if (propHasMismatch(el, key, props[key], vnode, parentComponent)) {
|
|
7983
7984
|
hasMismatch = true;
|
|
7984
7985
|
}
|
|
7985
7986
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
@@ -8154,7 +8155,8 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8154
8155
|
};
|
|
8155
8156
|
return [hydrate, hydrateNode];
|
|
8156
8157
|
}
|
|
8157
|
-
function propHasMismatch(el, key, clientValue, vnode) {
|
|
8158
|
+
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
8159
|
+
var _a;
|
|
8158
8160
|
let mismatchType;
|
|
8159
8161
|
let mismatchKey;
|
|
8160
8162
|
let actual;
|
|
@@ -8177,6 +8179,10 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8177
8179
|
}
|
|
8178
8180
|
}
|
|
8179
8181
|
}
|
|
8182
|
+
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
8183
|
+
for (const key2 in cssVars) {
|
|
8184
|
+
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
8185
|
+
}
|
|
8180
8186
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
8181
8187
|
mismatchType = mismatchKey = "style";
|
|
8182
8188
|
}
|
|
@@ -11250,7 +11256,7 @@ Component that was made reactive: `,
|
|
|
11250
11256
|
return true;
|
|
11251
11257
|
}
|
|
11252
11258
|
|
|
11253
|
-
const version = "3.4.
|
|
11259
|
+
const version = "3.4.16";
|
|
11254
11260
|
const warn = warn$1 ;
|
|
11255
11261
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11256
11262
|
const devtools = devtools$1 ;
|
|
@@ -11671,7 +11677,7 @@ Component that was made reactive: `,
|
|
|
11671
11677
|
}
|
|
11672
11678
|
},
|
|
11673
11679
|
updated(el, { value, oldValue }, { transition }) {
|
|
11674
|
-
if (!value === !oldValue)
|
|
11680
|
+
if (!value === !oldValue && el.style.display === el[vShowOldKey])
|
|
11675
11681
|
return;
|
|
11676
11682
|
if (transition) {
|
|
11677
11683
|
if (value) {
|
|
@@ -11710,6 +11716,9 @@ Component that was made reactive: `,
|
|
|
11710
11716
|
document.querySelectorAll(`[data-v-owner="${instance.uid}"]`)
|
|
11711
11717
|
).forEach((node) => setVarsOnNode(node, vars));
|
|
11712
11718
|
};
|
|
11719
|
+
{
|
|
11720
|
+
instance.getCssVars = () => getter(instance.proxy);
|
|
11721
|
+
}
|
|
11713
11722
|
const setVars = () => {
|
|
11714
11723
|
const vars = getter(instance.proxy);
|
|
11715
11724
|
setVarsOnVNode(instance.subTree, vars);
|
|
@@ -11790,6 +11799,7 @@ Component that was made reactive: `,
|
|
|
11790
11799
|
}
|
|
11791
11800
|
}
|
|
11792
11801
|
if (vShowOldKey in el) {
|
|
11802
|
+
el[vShowOldKey] = style.display;
|
|
11793
11803
|
style.display = currentDisplay;
|
|
11794
11804
|
}
|
|
11795
11805
|
}
|
|
@@ -12627,9 +12637,6 @@ Component that was made reactive: `,
|
|
|
12627
12637
|
);
|
|
12628
12638
|
return;
|
|
12629
12639
|
}
|
|
12630
|
-
if (isArrayValue && looseEqual(value, oldValue)) {
|
|
12631
|
-
return;
|
|
12632
|
-
}
|
|
12633
12640
|
for (let i = 0, l = el.options.length; i < l; i++) {
|
|
12634
12641
|
const option = el.options[i];
|
|
12635
12642
|
const optionValue = getValue(option);
|