@vue/compat 3.5.5 → 3.5.7
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 +99 -55
- package/dist/vue.cjs.prod.js +91 -50
- package/dist/vue.esm-browser.js +95 -54
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +98 -57
- package/dist/vue.global.js +90 -50
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +94 -53
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +97 -56
- package/dist/vue.runtime.global.js +89 -49
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.7
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -532,7 +532,7 @@ class ReactiveEffect {
|
|
|
532
532
|
/**
|
|
533
533
|
* @internal
|
|
534
534
|
*/
|
|
535
|
-
this.
|
|
535
|
+
this.next = void 0;
|
|
536
536
|
/**
|
|
537
537
|
* @internal
|
|
538
538
|
*/
|
|
@@ -562,9 +562,7 @@ class ReactiveEffect {
|
|
|
562
562
|
return;
|
|
563
563
|
}
|
|
564
564
|
if (!(this.flags & 8)) {
|
|
565
|
-
this
|
|
566
|
-
this.nextEffect = batchedEffect;
|
|
567
|
-
batchedEffect = this;
|
|
565
|
+
batch(this);
|
|
568
566
|
}
|
|
569
567
|
}
|
|
570
568
|
run() {
|
|
@@ -625,7 +623,12 @@ class ReactiveEffect {
|
|
|
625
623
|
}
|
|
626
624
|
}
|
|
627
625
|
let batchDepth = 0;
|
|
628
|
-
let
|
|
626
|
+
let batchedSub;
|
|
627
|
+
function batch(sub) {
|
|
628
|
+
sub.flags |= 8;
|
|
629
|
+
sub.next = batchedSub;
|
|
630
|
+
batchedSub = sub;
|
|
631
|
+
}
|
|
629
632
|
function startBatch() {
|
|
630
633
|
batchDepth++;
|
|
631
634
|
}
|
|
@@ -634,15 +637,16 @@ function endBatch() {
|
|
|
634
637
|
return;
|
|
635
638
|
}
|
|
636
639
|
let error;
|
|
637
|
-
while (
|
|
638
|
-
let e =
|
|
639
|
-
|
|
640
|
+
while (batchedSub) {
|
|
641
|
+
let e = batchedSub;
|
|
642
|
+
batchedSub = void 0;
|
|
640
643
|
while (e) {
|
|
641
|
-
const next = e.
|
|
642
|
-
e.
|
|
644
|
+
const next = e.next;
|
|
645
|
+
e.next = void 0;
|
|
643
646
|
e.flags &= ~8;
|
|
644
647
|
if (e.flags & 1) {
|
|
645
648
|
try {
|
|
649
|
+
;
|
|
646
650
|
e.trigger();
|
|
647
651
|
} catch (err) {
|
|
648
652
|
if (!error) error = err;
|
|
@@ -682,7 +686,7 @@ function cleanupDeps(sub) {
|
|
|
682
686
|
}
|
|
683
687
|
function isDirty(sub) {
|
|
684
688
|
for (let link = sub.deps; link; link = link.nextDep) {
|
|
685
|
-
if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed) || link.dep.version !== link.version) {
|
|
689
|
+
if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {
|
|
686
690
|
return true;
|
|
687
691
|
}
|
|
688
692
|
}
|
|
@@ -702,7 +706,7 @@ function refreshComputed(computed) {
|
|
|
702
706
|
computed.globalVersion = globalVersion;
|
|
703
707
|
const dep = computed.dep;
|
|
704
708
|
computed.flags |= 2;
|
|
705
|
-
if (dep.version > 0 && !computed.isSSR && !isDirty(computed)) {
|
|
709
|
+
if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
|
|
706
710
|
computed.flags &= ~2;
|
|
707
711
|
return;
|
|
708
712
|
}
|
|
@@ -727,7 +731,7 @@ function refreshComputed(computed) {
|
|
|
727
731
|
computed.flags &= ~2;
|
|
728
732
|
}
|
|
729
733
|
}
|
|
730
|
-
function removeSub(link) {
|
|
734
|
+
function removeSub(link, fromComputed = false) {
|
|
731
735
|
const { dep, prevSub, nextSub } = link;
|
|
732
736
|
if (prevSub) {
|
|
733
737
|
prevSub.nextSub = nextSub;
|
|
@@ -740,10 +744,18 @@ function removeSub(link) {
|
|
|
740
744
|
if (dep.subs === link) {
|
|
741
745
|
dep.subs = prevSub;
|
|
742
746
|
}
|
|
743
|
-
if (
|
|
744
|
-
dep.
|
|
745
|
-
|
|
746
|
-
|
|
747
|
+
if (!!(process.env.NODE_ENV !== "production") && dep.subsHead === link) {
|
|
748
|
+
dep.subsHead = nextSub;
|
|
749
|
+
}
|
|
750
|
+
if (!dep.subs) {
|
|
751
|
+
if (dep.computed) {
|
|
752
|
+
dep.computed.flags &= ~4;
|
|
753
|
+
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
754
|
+
removeSub(l, true);
|
|
755
|
+
}
|
|
756
|
+
} else if (dep.map && !fromComputed) {
|
|
757
|
+
dep.map.delete(dep.key);
|
|
758
|
+
if (!dep.map.size) targetMap.delete(dep.target);
|
|
747
759
|
}
|
|
748
760
|
}
|
|
749
761
|
}
|
|
@@ -824,6 +836,12 @@ class Dep {
|
|
|
824
836
|
* Doubly linked list representing the subscribing effects (tail)
|
|
825
837
|
*/
|
|
826
838
|
this.subs = void 0;
|
|
839
|
+
/**
|
|
840
|
+
* For object property deps cleanup
|
|
841
|
+
*/
|
|
842
|
+
this.target = void 0;
|
|
843
|
+
this.map = void 0;
|
|
844
|
+
this.key = void 0;
|
|
827
845
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
828
846
|
this.subsHead = void 0;
|
|
829
847
|
}
|
|
@@ -884,7 +902,7 @@ class Dep {
|
|
|
884
902
|
try {
|
|
885
903
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
886
904
|
for (let head = this.subsHead; head; head = head.nextSub) {
|
|
887
|
-
if (
|
|
905
|
+
if (head.sub.onTrigger && !(head.sub.flags & 8)) {
|
|
888
906
|
head.sub.onTrigger(
|
|
889
907
|
extend(
|
|
890
908
|
{
|
|
@@ -897,7 +915,10 @@ class Dep {
|
|
|
897
915
|
}
|
|
898
916
|
}
|
|
899
917
|
for (let link = this.subs; link; link = link.prevSub) {
|
|
900
|
-
link.sub.notify()
|
|
918
|
+
if (link.sub.notify()) {
|
|
919
|
+
;
|
|
920
|
+
link.sub.dep.notify();
|
|
921
|
+
}
|
|
901
922
|
}
|
|
902
923
|
} finally {
|
|
903
924
|
endBatch();
|
|
@@ -941,6 +962,9 @@ function track(target, type, key) {
|
|
|
941
962
|
let dep = depsMap.get(key);
|
|
942
963
|
if (!dep) {
|
|
943
964
|
depsMap.set(key, dep = new Dep());
|
|
965
|
+
dep.target = target;
|
|
966
|
+
dep.map = depsMap;
|
|
967
|
+
dep.key = key;
|
|
944
968
|
}
|
|
945
969
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
946
970
|
dep.track({
|
|
@@ -1825,15 +1849,17 @@ class RefImpl {
|
|
|
1825
1849
|
}
|
|
1826
1850
|
}
|
|
1827
1851
|
function triggerRef(ref2) {
|
|
1828
|
-
if (
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1852
|
+
if (ref2.dep) {
|
|
1853
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1854
|
+
ref2.dep.trigger({
|
|
1855
|
+
target: ref2,
|
|
1856
|
+
type: "set",
|
|
1857
|
+
key: "value",
|
|
1858
|
+
newValue: ref2._value
|
|
1859
|
+
});
|
|
1860
|
+
} else {
|
|
1861
|
+
ref2.dep.trigger();
|
|
1862
|
+
}
|
|
1837
1863
|
}
|
|
1838
1864
|
}
|
|
1839
1865
|
function unref(ref2) {
|
|
@@ -1976,8 +2002,10 @@ class ComputedRefImpl {
|
|
|
1976
2002
|
*/
|
|
1977
2003
|
notify() {
|
|
1978
2004
|
this.flags |= 16;
|
|
1979
|
-
if (
|
|
1980
|
-
|
|
2005
|
+
if (!(this.flags & 8) && // avoid infinite self recursion
|
|
2006
|
+
activeSub !== this) {
|
|
2007
|
+
batch(this);
|
|
2008
|
+
return true;
|
|
1981
2009
|
} else if (!!(process.env.NODE_ENV !== "production")) ;
|
|
1982
2010
|
}
|
|
1983
2011
|
get value() {
|
|
@@ -2125,20 +2153,12 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2125
2153
|
remove(scope.effects, effect);
|
|
2126
2154
|
}
|
|
2127
2155
|
};
|
|
2128
|
-
if (once) {
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
};
|
|
2135
|
-
} else {
|
|
2136
|
-
const _getter = getter;
|
|
2137
|
-
getter = () => {
|
|
2138
|
-
_getter();
|
|
2139
|
-
watchHandle();
|
|
2140
|
-
};
|
|
2141
|
-
}
|
|
2156
|
+
if (once && cb) {
|
|
2157
|
+
const _cb = cb;
|
|
2158
|
+
cb = (...args) => {
|
|
2159
|
+
_cb(...args);
|
|
2160
|
+
watchHandle();
|
|
2161
|
+
};
|
|
2142
2162
|
}
|
|
2143
2163
|
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
2144
2164
|
const job = (immediateFirstRun) => {
|
|
@@ -2592,7 +2612,9 @@ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
|
|
|
2592
2612
|
cb.flags &= ~1;
|
|
2593
2613
|
}
|
|
2594
2614
|
cb();
|
|
2595
|
-
cb.flags
|
|
2615
|
+
if (!(cb.flags & 4)) {
|
|
2616
|
+
cb.flags &= ~1;
|
|
2617
|
+
}
|
|
2596
2618
|
}
|
|
2597
2619
|
}
|
|
2598
2620
|
}
|
|
@@ -2648,7 +2670,9 @@ function flushJobs(seen) {
|
|
|
2648
2670
|
job.i,
|
|
2649
2671
|
job.i ? 15 : 14
|
|
2650
2672
|
);
|
|
2651
|
-
job.flags
|
|
2673
|
+
if (!(job.flags & 4)) {
|
|
2674
|
+
job.flags &= ~1;
|
|
2675
|
+
}
|
|
2652
2676
|
}
|
|
2653
2677
|
}
|
|
2654
2678
|
} finally {
|
|
@@ -4993,6 +5017,11 @@ const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
|
|
|
4993
5017
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
4994
5018
|
return () => cancelIdleCallback(id);
|
|
4995
5019
|
};
|
|
5020
|
+
function elementIsVisibleInViewport(el) {
|
|
5021
|
+
const { top, left, bottom, right } = el.getBoundingClientRect();
|
|
5022
|
+
const { innerHeight, innerWidth } = window;
|
|
5023
|
+
return (top > 0 && top < innerHeight || bottom > 0 && bottom < innerHeight) && (left > 0 && left < innerWidth || right > 0 && right < innerWidth);
|
|
5024
|
+
}
|
|
4996
5025
|
const hydrateOnVisible = (opts) => (hydrate, forEach) => {
|
|
4997
5026
|
const ob = new IntersectionObserver((entries) => {
|
|
4998
5027
|
for (const e of entries) {
|
|
@@ -5002,7 +5031,15 @@ const hydrateOnVisible = (opts) => (hydrate, forEach) => {
|
|
|
5002
5031
|
break;
|
|
5003
5032
|
}
|
|
5004
5033
|
}, opts);
|
|
5005
|
-
forEach((el) =>
|
|
5034
|
+
forEach((el) => {
|
|
5035
|
+
if (!(el instanceof Element)) return;
|
|
5036
|
+
if (elementIsVisibleInViewport(el)) {
|
|
5037
|
+
hydrate();
|
|
5038
|
+
ob.disconnect();
|
|
5039
|
+
return false;
|
|
5040
|
+
}
|
|
5041
|
+
ob.observe(el);
|
|
5042
|
+
});
|
|
5006
5043
|
return () => ob.disconnect();
|
|
5007
5044
|
};
|
|
5008
5045
|
const hydrateOnMediaQuery = (query) => (hydrate) => {
|
|
@@ -5047,7 +5084,10 @@ function forEachElement(node, cb) {
|
|
|
5047
5084
|
let next = node.nextSibling;
|
|
5048
5085
|
while (next) {
|
|
5049
5086
|
if (next.nodeType === 1) {
|
|
5050
|
-
cb(next);
|
|
5087
|
+
const result = cb(next);
|
|
5088
|
+
if (result === false) {
|
|
5089
|
+
break;
|
|
5090
|
+
}
|
|
5051
5091
|
} else if (isComment(next)) {
|
|
5052
5092
|
if (next.data === "]") {
|
|
5053
5093
|
if (--depth === 0) break;
|
|
@@ -7142,7 +7182,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7142
7182
|
return vm;
|
|
7143
7183
|
}
|
|
7144
7184
|
}
|
|
7145
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7185
|
+
Vue.version = `2.6.14-compat:${"3.5.7"}`;
|
|
7146
7186
|
Vue.config = singletonApp.config;
|
|
7147
7187
|
Vue.use = (plugin, ...options) => {
|
|
7148
7188
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -10000,11 +10040,12 @@ function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
|
10000
10040
|
} else if (!cb || immediate) {
|
|
10001
10041
|
baseWatchOptions.once = true;
|
|
10002
10042
|
} else {
|
|
10003
|
-
|
|
10004
|
-
stop: NOOP,
|
|
10005
|
-
resume: NOOP,
|
|
10006
|
-
pause: NOOP
|
|
10043
|
+
const watchStopHandle = () => {
|
|
10007
10044
|
};
|
|
10045
|
+
watchStopHandle.stop = NOOP;
|
|
10046
|
+
watchStopHandle.resume = NOOP;
|
|
10047
|
+
watchStopHandle.pause = NOOP;
|
|
10048
|
+
return watchStopHandle;
|
|
10008
10049
|
}
|
|
10009
10050
|
}
|
|
10010
10051
|
const instance = currentInstance;
|
|
@@ -12310,7 +12351,7 @@ function isMemoSame(cached, memo) {
|
|
|
12310
12351
|
return true;
|
|
12311
12352
|
}
|
|
12312
12353
|
|
|
12313
|
-
const version = "3.5.
|
|
12354
|
+
const version = "3.5.7";
|
|
12314
12355
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12315
12356
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12316
12357
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -12653,7 +12694,7 @@ function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
|
|
|
12653
12694
|
resolve();
|
|
12654
12695
|
}
|
|
12655
12696
|
};
|
|
12656
|
-
if (explicitTimeout) {
|
|
12697
|
+
if (explicitTimeout != null) {
|
|
12657
12698
|
return setTimeout(resolveIfNotStale, explicitTimeout);
|
|
12658
12699
|
}
|
|
12659
12700
|
const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
|
|
@@ -19504,7 +19545,7 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
19504
19545
|
);
|
|
19505
19546
|
return createTransformProps();
|
|
19506
19547
|
}
|
|
19507
|
-
const rawExp = exp.loc.source;
|
|
19548
|
+
const rawExp = exp.loc.source.trim();
|
|
19508
19549
|
const expString = exp.type === 4 ? exp.content : rawExp;
|
|
19509
19550
|
const bindingType = context.bindingMetadata[rawExp];
|
|
19510
19551
|
if (bindingType === "props" || bindingType === "props-aliased") {
|
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.7
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -535,7 +535,7 @@ var Vue = (function () {
|
|
|
535
535
|
/**
|
|
536
536
|
* @internal
|
|
537
537
|
*/
|
|
538
|
-
this.
|
|
538
|
+
this.next = void 0;
|
|
539
539
|
/**
|
|
540
540
|
* @internal
|
|
541
541
|
*/
|
|
@@ -565,9 +565,7 @@ var Vue = (function () {
|
|
|
565
565
|
return;
|
|
566
566
|
}
|
|
567
567
|
if (!(this.flags & 8)) {
|
|
568
|
-
this
|
|
569
|
-
this.nextEffect = batchedEffect;
|
|
570
|
-
batchedEffect = this;
|
|
568
|
+
batch(this);
|
|
571
569
|
}
|
|
572
570
|
}
|
|
573
571
|
run() {
|
|
@@ -628,7 +626,12 @@ var Vue = (function () {
|
|
|
628
626
|
}
|
|
629
627
|
}
|
|
630
628
|
let batchDepth = 0;
|
|
631
|
-
let
|
|
629
|
+
let batchedSub;
|
|
630
|
+
function batch(sub) {
|
|
631
|
+
sub.flags |= 8;
|
|
632
|
+
sub.next = batchedSub;
|
|
633
|
+
batchedSub = sub;
|
|
634
|
+
}
|
|
632
635
|
function startBatch() {
|
|
633
636
|
batchDepth++;
|
|
634
637
|
}
|
|
@@ -637,15 +640,16 @@ var Vue = (function () {
|
|
|
637
640
|
return;
|
|
638
641
|
}
|
|
639
642
|
let error;
|
|
640
|
-
while (
|
|
641
|
-
let e =
|
|
642
|
-
|
|
643
|
+
while (batchedSub) {
|
|
644
|
+
let e = batchedSub;
|
|
645
|
+
batchedSub = void 0;
|
|
643
646
|
while (e) {
|
|
644
|
-
const next = e.
|
|
645
|
-
e.
|
|
647
|
+
const next = e.next;
|
|
648
|
+
e.next = void 0;
|
|
646
649
|
e.flags &= ~8;
|
|
647
650
|
if (e.flags & 1) {
|
|
648
651
|
try {
|
|
652
|
+
;
|
|
649
653
|
e.trigger();
|
|
650
654
|
} catch (err) {
|
|
651
655
|
if (!error) error = err;
|
|
@@ -685,7 +689,7 @@ var Vue = (function () {
|
|
|
685
689
|
}
|
|
686
690
|
function isDirty(sub) {
|
|
687
691
|
for (let link = sub.deps; link; link = link.nextDep) {
|
|
688
|
-
if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed) || link.dep.version !== link.version) {
|
|
692
|
+
if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {
|
|
689
693
|
return true;
|
|
690
694
|
}
|
|
691
695
|
}
|
|
@@ -705,7 +709,7 @@ var Vue = (function () {
|
|
|
705
709
|
computed.globalVersion = globalVersion;
|
|
706
710
|
const dep = computed.dep;
|
|
707
711
|
computed.flags |= 2;
|
|
708
|
-
if (dep.version > 0 && !computed.isSSR && !isDirty(computed)) {
|
|
712
|
+
if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
|
|
709
713
|
computed.flags &= ~2;
|
|
710
714
|
return;
|
|
711
715
|
}
|
|
@@ -730,7 +734,7 @@ var Vue = (function () {
|
|
|
730
734
|
computed.flags &= ~2;
|
|
731
735
|
}
|
|
732
736
|
}
|
|
733
|
-
function removeSub(link) {
|
|
737
|
+
function removeSub(link, fromComputed = false) {
|
|
734
738
|
const { dep, prevSub, nextSub } = link;
|
|
735
739
|
if (prevSub) {
|
|
736
740
|
prevSub.nextSub = nextSub;
|
|
@@ -743,10 +747,18 @@ var Vue = (function () {
|
|
|
743
747
|
if (dep.subs === link) {
|
|
744
748
|
dep.subs = prevSub;
|
|
745
749
|
}
|
|
746
|
-
if (
|
|
747
|
-
dep.
|
|
748
|
-
|
|
749
|
-
|
|
750
|
+
if (dep.subsHead === link) {
|
|
751
|
+
dep.subsHead = nextSub;
|
|
752
|
+
}
|
|
753
|
+
if (!dep.subs) {
|
|
754
|
+
if (dep.computed) {
|
|
755
|
+
dep.computed.flags &= ~4;
|
|
756
|
+
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
757
|
+
removeSub(l, true);
|
|
758
|
+
}
|
|
759
|
+
} else if (dep.map && !fromComputed) {
|
|
760
|
+
dep.map.delete(dep.key);
|
|
761
|
+
if (!dep.map.size) targetMap.delete(dep.target);
|
|
750
762
|
}
|
|
751
763
|
}
|
|
752
764
|
}
|
|
@@ -827,6 +839,12 @@ var Vue = (function () {
|
|
|
827
839
|
* Doubly linked list representing the subscribing effects (tail)
|
|
828
840
|
*/
|
|
829
841
|
this.subs = void 0;
|
|
842
|
+
/**
|
|
843
|
+
* For object property deps cleanup
|
|
844
|
+
*/
|
|
845
|
+
this.target = void 0;
|
|
846
|
+
this.map = void 0;
|
|
847
|
+
this.key = void 0;
|
|
830
848
|
{
|
|
831
849
|
this.subsHead = void 0;
|
|
832
850
|
}
|
|
@@ -900,7 +918,10 @@ var Vue = (function () {
|
|
|
900
918
|
}
|
|
901
919
|
}
|
|
902
920
|
for (let link = this.subs; link; link = link.prevSub) {
|
|
903
|
-
link.sub.notify()
|
|
921
|
+
if (link.sub.notify()) {
|
|
922
|
+
;
|
|
923
|
+
link.sub.dep.notify();
|
|
924
|
+
}
|
|
904
925
|
}
|
|
905
926
|
} finally {
|
|
906
927
|
endBatch();
|
|
@@ -944,6 +965,9 @@ var Vue = (function () {
|
|
|
944
965
|
let dep = depsMap.get(key);
|
|
945
966
|
if (!dep) {
|
|
946
967
|
depsMap.set(key, dep = new Dep());
|
|
968
|
+
dep.target = target;
|
|
969
|
+
dep.map = depsMap;
|
|
970
|
+
dep.key = key;
|
|
947
971
|
}
|
|
948
972
|
{
|
|
949
973
|
dep.track({
|
|
@@ -1820,13 +1844,15 @@ var Vue = (function () {
|
|
|
1820
1844
|
}
|
|
1821
1845
|
}
|
|
1822
1846
|
function triggerRef(ref2) {
|
|
1823
|
-
{
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1847
|
+
if (ref2.dep) {
|
|
1848
|
+
{
|
|
1849
|
+
ref2.dep.trigger({
|
|
1850
|
+
target: ref2,
|
|
1851
|
+
type: "set",
|
|
1852
|
+
key: "value",
|
|
1853
|
+
newValue: ref2._value
|
|
1854
|
+
});
|
|
1855
|
+
}
|
|
1830
1856
|
}
|
|
1831
1857
|
}
|
|
1832
1858
|
function unref(ref2) {
|
|
@@ -1969,8 +1995,10 @@ var Vue = (function () {
|
|
|
1969
1995
|
*/
|
|
1970
1996
|
notify() {
|
|
1971
1997
|
this.flags |= 16;
|
|
1972
|
-
if (
|
|
1973
|
-
|
|
1998
|
+
if (!(this.flags & 8) && // avoid infinite self recursion
|
|
1999
|
+
activeSub !== this) {
|
|
2000
|
+
batch(this);
|
|
2001
|
+
return true;
|
|
1974
2002
|
}
|
|
1975
2003
|
}
|
|
1976
2004
|
get value() {
|
|
@@ -2118,20 +2146,12 @@ var Vue = (function () {
|
|
|
2118
2146
|
remove(scope.effects, effect);
|
|
2119
2147
|
}
|
|
2120
2148
|
};
|
|
2121
|
-
if (once) {
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
};
|
|
2128
|
-
} else {
|
|
2129
|
-
const _getter = getter;
|
|
2130
|
-
getter = () => {
|
|
2131
|
-
_getter();
|
|
2132
|
-
watchHandle();
|
|
2133
|
-
};
|
|
2134
|
-
}
|
|
2149
|
+
if (once && cb) {
|
|
2150
|
+
const _cb = cb;
|
|
2151
|
+
cb = (...args) => {
|
|
2152
|
+
_cb(...args);
|
|
2153
|
+
watchHandle();
|
|
2154
|
+
};
|
|
2135
2155
|
}
|
|
2136
2156
|
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
2137
2157
|
const job = (immediateFirstRun) => {
|
|
@@ -2580,7 +2600,9 @@ var Vue = (function () {
|
|
|
2580
2600
|
cb.flags &= ~1;
|
|
2581
2601
|
}
|
|
2582
2602
|
cb();
|
|
2583
|
-
cb.flags
|
|
2603
|
+
if (!(cb.flags & 4)) {
|
|
2604
|
+
cb.flags &= ~1;
|
|
2605
|
+
}
|
|
2584
2606
|
}
|
|
2585
2607
|
}
|
|
2586
2608
|
}
|
|
@@ -2636,7 +2658,9 @@ var Vue = (function () {
|
|
|
2636
2658
|
job.i,
|
|
2637
2659
|
job.i ? 15 : 14
|
|
2638
2660
|
);
|
|
2639
|
-
job.flags
|
|
2661
|
+
if (!(job.flags & 4)) {
|
|
2662
|
+
job.flags &= ~1;
|
|
2663
|
+
}
|
|
2640
2664
|
}
|
|
2641
2665
|
}
|
|
2642
2666
|
} finally {
|
|
@@ -4966,6 +4990,11 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4966
4990
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
4967
4991
|
return () => cancelIdleCallback(id);
|
|
4968
4992
|
};
|
|
4993
|
+
function elementIsVisibleInViewport(el) {
|
|
4994
|
+
const { top, left, bottom, right } = el.getBoundingClientRect();
|
|
4995
|
+
const { innerHeight, innerWidth } = window;
|
|
4996
|
+
return (top > 0 && top < innerHeight || bottom > 0 && bottom < innerHeight) && (left > 0 && left < innerWidth || right > 0 && right < innerWidth);
|
|
4997
|
+
}
|
|
4969
4998
|
const hydrateOnVisible = (opts) => (hydrate, forEach) => {
|
|
4970
4999
|
const ob = new IntersectionObserver((entries) => {
|
|
4971
5000
|
for (const e of entries) {
|
|
@@ -4975,7 +5004,15 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4975
5004
|
break;
|
|
4976
5005
|
}
|
|
4977
5006
|
}, opts);
|
|
4978
|
-
forEach((el) =>
|
|
5007
|
+
forEach((el) => {
|
|
5008
|
+
if (!(el instanceof Element)) return;
|
|
5009
|
+
if (elementIsVisibleInViewport(el)) {
|
|
5010
|
+
hydrate();
|
|
5011
|
+
ob.disconnect();
|
|
5012
|
+
return false;
|
|
5013
|
+
}
|
|
5014
|
+
ob.observe(el);
|
|
5015
|
+
});
|
|
4979
5016
|
return () => ob.disconnect();
|
|
4980
5017
|
};
|
|
4981
5018
|
const hydrateOnMediaQuery = (query) => (hydrate) => {
|
|
@@ -5020,7 +5057,10 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5020
5057
|
let next = node.nextSibling;
|
|
5021
5058
|
while (next) {
|
|
5022
5059
|
if (next.nodeType === 1) {
|
|
5023
|
-
cb(next);
|
|
5060
|
+
const result = cb(next);
|
|
5061
|
+
if (result === false) {
|
|
5062
|
+
break;
|
|
5063
|
+
}
|
|
5024
5064
|
} else if (isComment(next)) {
|
|
5025
5065
|
if (next.data === "]") {
|
|
5026
5066
|
if (--depth === 0) break;
|
|
@@ -7104,7 +7144,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7104
7144
|
return vm;
|
|
7105
7145
|
}
|
|
7106
7146
|
}
|
|
7107
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7147
|
+
Vue.version = `2.6.14-compat:${"3.5.7"}`;
|
|
7108
7148
|
Vue.config = singletonApp.config;
|
|
7109
7149
|
Vue.use = (plugin, ...options) => {
|
|
7110
7150
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -12182,7 +12222,7 @@ Component that was made reactive: `,
|
|
|
12182
12222
|
return true;
|
|
12183
12223
|
}
|
|
12184
12224
|
|
|
12185
|
-
const version = "3.5.
|
|
12225
|
+
const version = "3.5.7";
|
|
12186
12226
|
const warn = warn$1 ;
|
|
12187
12227
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12188
12228
|
const devtools = devtools$1 ;
|
|
@@ -12513,7 +12553,7 @@ Component that was made reactive: `,
|
|
|
12513
12553
|
resolve();
|
|
12514
12554
|
}
|
|
12515
12555
|
};
|
|
12516
|
-
if (explicitTimeout) {
|
|
12556
|
+
if (explicitTimeout != null) {
|
|
12517
12557
|
return setTimeout(resolveIfNotStale, explicitTimeout);
|
|
12518
12558
|
}
|
|
12519
12559
|
const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
|
|
@@ -19307,7 +19347,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
19307
19347
|
);
|
|
19308
19348
|
return createTransformProps();
|
|
19309
19349
|
}
|
|
19310
|
-
const rawExp = exp.loc.source;
|
|
19350
|
+
const rawExp = exp.loc.source.trim();
|
|
19311
19351
|
const expString = exp.type === 4 ? exp.content : rawExp;
|
|
19312
19352
|
const bindingType = context.bindingMetadata[rawExp];
|
|
19313
19353
|
if (bindingType === "props" || bindingType === "props-aliased") {
|