@vue/compat 3.4.19 → 3.4.21
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 +84 -73
- package/dist/vue.cjs.prod.js +63 -64
- package/dist/vue.esm-browser.js +84 -73
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +84 -73
- package/dist/vue.global.js +84 -73
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +78 -64
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +78 -64
- package/dist/vue.runtime.global.js +78 -64
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.21
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -743,20 +743,20 @@ function hasOwnProperty(key) {
|
|
|
743
743
|
return obj.hasOwnProperty(key);
|
|
744
744
|
}
|
|
745
745
|
class BaseReactiveHandler {
|
|
746
|
-
constructor(_isReadonly = false,
|
|
746
|
+
constructor(_isReadonly = false, _isShallow = false) {
|
|
747
747
|
this._isReadonly = _isReadonly;
|
|
748
|
-
this.
|
|
748
|
+
this._isShallow = _isShallow;
|
|
749
749
|
}
|
|
750
750
|
get(target, key, receiver) {
|
|
751
|
-
const isReadonly2 = this._isReadonly,
|
|
751
|
+
const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
|
|
752
752
|
if (key === "__v_isReactive") {
|
|
753
753
|
return !isReadonly2;
|
|
754
754
|
} else if (key === "__v_isReadonly") {
|
|
755
755
|
return isReadonly2;
|
|
756
756
|
} else if (key === "__v_isShallow") {
|
|
757
|
-
return
|
|
757
|
+
return isShallow2;
|
|
758
758
|
} else if (key === "__v_raw") {
|
|
759
|
-
if (receiver === (isReadonly2 ?
|
|
759
|
+
if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
760
760
|
// this means the reciever is a user proxy of the reactive proxy
|
|
761
761
|
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
762
762
|
return target;
|
|
@@ -779,7 +779,7 @@ class BaseReactiveHandler {
|
|
|
779
779
|
if (!isReadonly2) {
|
|
780
780
|
track(target, "get", key);
|
|
781
781
|
}
|
|
782
|
-
if (
|
|
782
|
+
if (isShallow2) {
|
|
783
783
|
return res;
|
|
784
784
|
}
|
|
785
785
|
if (isRef(res)) {
|
|
@@ -792,12 +792,12 @@ class BaseReactiveHandler {
|
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
794
|
class MutableReactiveHandler extends BaseReactiveHandler {
|
|
795
|
-
constructor(
|
|
796
|
-
super(false,
|
|
795
|
+
constructor(isShallow2 = false) {
|
|
796
|
+
super(false, isShallow2);
|
|
797
797
|
}
|
|
798
798
|
set(target, key, value, receiver) {
|
|
799
799
|
let oldValue = target[key];
|
|
800
|
-
if (!this.
|
|
800
|
+
if (!this._isShallow) {
|
|
801
801
|
const isOldValueReadonly = isReadonly(oldValue);
|
|
802
802
|
if (!isShallow(value) && !isReadonly(value)) {
|
|
803
803
|
oldValue = toRaw(oldValue);
|
|
@@ -849,8 +849,8 @@ class MutableReactiveHandler extends BaseReactiveHandler {
|
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
852
|
-
constructor(
|
|
853
|
-
super(true,
|
|
852
|
+
constructor(isShallow2 = false) {
|
|
853
|
+
super(true, isShallow2);
|
|
854
854
|
}
|
|
855
855
|
set(target, key) {
|
|
856
856
|
return true;
|
|
@@ -1244,6 +1244,7 @@ const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
|
1244
1244
|
|
|
1245
1245
|
class ComputedRefImpl {
|
|
1246
1246
|
constructor(getter, _setter, isReadonly, isSSR) {
|
|
1247
|
+
this.getter = getter;
|
|
1247
1248
|
this._setter = _setter;
|
|
1248
1249
|
this.dep = void 0;
|
|
1249
1250
|
this.__v_isRef = true;
|
|
@@ -2381,8 +2382,10 @@ const SuspenseImpl = {
|
|
|
2381
2382
|
rendererInternals
|
|
2382
2383
|
);
|
|
2383
2384
|
} else {
|
|
2384
|
-
if (parentSuspense && parentSuspense.deps > 0) {
|
|
2385
|
+
if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback) {
|
|
2385
2386
|
n2.suspense = n1.suspense;
|
|
2387
|
+
n2.suspense.vnode = n2;
|
|
2388
|
+
n2.el = n1.el;
|
|
2386
2389
|
return;
|
|
2387
2390
|
}
|
|
2388
2391
|
patchSuspense(
|
|
@@ -3304,7 +3307,6 @@ const BaseTransitionImpl = {
|
|
|
3304
3307
|
setup(props, { slots }) {
|
|
3305
3308
|
const instance = getCurrentInstance();
|
|
3306
3309
|
const state = useTransitionState();
|
|
3307
|
-
let prevTransitionKey;
|
|
3308
3310
|
return () => {
|
|
3309
3311
|
const children = slots.default && getTransitionRawChildren(slots.default(), true);
|
|
3310
3312
|
if (!children || !children.length) {
|
|
@@ -3337,18 +3339,7 @@ const BaseTransitionImpl = {
|
|
|
3337
3339
|
setTransitionHooks(innerChild, enterHooks);
|
|
3338
3340
|
const oldChild = instance.subTree;
|
|
3339
3341
|
const oldInnerChild = oldChild && getKeepAliveChild(oldChild);
|
|
3340
|
-
|
|
3341
|
-
const { getTransitionKey } = innerChild.type;
|
|
3342
|
-
if (getTransitionKey) {
|
|
3343
|
-
const key = getTransitionKey();
|
|
3344
|
-
if (prevTransitionKey === void 0) {
|
|
3345
|
-
prevTransitionKey = key;
|
|
3346
|
-
} else if (key !== prevTransitionKey) {
|
|
3347
|
-
prevTransitionKey = key;
|
|
3348
|
-
transitionKeyChanged = true;
|
|
3349
|
-
}
|
|
3350
|
-
}
|
|
3351
|
-
if (oldInnerChild && oldInnerChild.type !== Comment && (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) {
|
|
3342
|
+
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild)) {
|
|
3352
3343
|
const leavingHooks = resolveTransitionHooks(
|
|
3353
3344
|
oldInnerChild,
|
|
3354
3345
|
rawProps,
|
|
@@ -5255,7 +5246,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5255
5246
|
return vm;
|
|
5256
5247
|
}
|
|
5257
5248
|
}
|
|
5258
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5249
|
+
Vue.version = `2.6.14-compat:${"3.4.21"}`;
|
|
5259
5250
|
Vue.config = singletonApp.config;
|
|
5260
5251
|
Vue.use = (p, ...options) => {
|
|
5261
5252
|
if (p && isFunction(p.install)) {
|
|
@@ -9023,7 +9014,8 @@ function isClassComponent(value) {
|
|
|
9023
9014
|
}
|
|
9024
9015
|
|
|
9025
9016
|
const computed = (getterOrOptions, debugOptions) => {
|
|
9026
|
-
|
|
9017
|
+
const c = computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
9018
|
+
return c;
|
|
9027
9019
|
};
|
|
9028
9020
|
|
|
9029
9021
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
@@ -9123,7 +9115,7 @@ function isMemoSame(cached, memo) {
|
|
|
9123
9115
|
return true;
|
|
9124
9116
|
}
|
|
9125
9117
|
|
|
9126
|
-
const version = "3.4.
|
|
9118
|
+
const version = "3.4.21";
|
|
9127
9119
|
const warn$1 = NOOP;
|
|
9128
9120
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9129
9121
|
const devtools = void 0;
|
|
@@ -9533,10 +9525,11 @@ function patchClass(el, value, isSVG) {
|
|
|
9533
9525
|
}
|
|
9534
9526
|
}
|
|
9535
9527
|
|
|
9536
|
-
const
|
|
9528
|
+
const vShowOriginalDisplay = Symbol("_vod");
|
|
9529
|
+
const vShowHidden = Symbol("_vsh");
|
|
9537
9530
|
const vShow = {
|
|
9538
9531
|
beforeMount(el, { value }, { transition }) {
|
|
9539
|
-
el[
|
|
9532
|
+
el[vShowOriginalDisplay] = el.style.display === "none" ? "" : el.style.display;
|
|
9540
9533
|
if (transition && value) {
|
|
9541
9534
|
transition.beforeEnter(el);
|
|
9542
9535
|
} else {
|
|
@@ -9549,7 +9542,7 @@ const vShow = {
|
|
|
9549
9542
|
}
|
|
9550
9543
|
},
|
|
9551
9544
|
updated(el, { value, oldValue }, { transition }) {
|
|
9552
|
-
if (!value === !oldValue
|
|
9545
|
+
if (!value === !oldValue)
|
|
9553
9546
|
return;
|
|
9554
9547
|
if (transition) {
|
|
9555
9548
|
if (value) {
|
|
@@ -9570,7 +9563,8 @@ const vShow = {
|
|
|
9570
9563
|
}
|
|
9571
9564
|
};
|
|
9572
9565
|
function setDisplay(el, value) {
|
|
9573
|
-
el.style.display = value ? el[
|
|
9566
|
+
el.style.display = value ? el[vShowOriginalDisplay] : "none";
|
|
9567
|
+
el[vShowHidden] = !value;
|
|
9574
9568
|
}
|
|
9575
9569
|
function initVShowForSSR() {
|
|
9576
9570
|
vShow.getSSRProps = ({ value }) => {
|
|
@@ -9589,13 +9583,21 @@ const displayRE = /(^|;)\s*display\s*:/;
|
|
|
9589
9583
|
function patchStyle(el, prev, next) {
|
|
9590
9584
|
const style = el.style;
|
|
9591
9585
|
const isCssString = isString(next);
|
|
9592
|
-
const currentDisplay = style.display;
|
|
9593
9586
|
let hasControlledDisplay = false;
|
|
9594
9587
|
if (next && !isCssString) {
|
|
9595
|
-
if (prev
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9588
|
+
if (prev) {
|
|
9589
|
+
if (!isString(prev)) {
|
|
9590
|
+
for (const key in prev) {
|
|
9591
|
+
if (next[key] == null) {
|
|
9592
|
+
setStyle(style, key, "");
|
|
9593
|
+
}
|
|
9594
|
+
}
|
|
9595
|
+
} else {
|
|
9596
|
+
for (const prevStyle of prev.split(";")) {
|
|
9597
|
+
const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
|
|
9598
|
+
if (next[key] == null) {
|
|
9599
|
+
setStyle(style, key, "");
|
|
9600
|
+
}
|
|
9599
9601
|
}
|
|
9600
9602
|
}
|
|
9601
9603
|
}
|
|
@@ -9619,9 +9621,11 @@ function patchStyle(el, prev, next) {
|
|
|
9619
9621
|
el.removeAttribute("style");
|
|
9620
9622
|
}
|
|
9621
9623
|
}
|
|
9622
|
-
if (
|
|
9623
|
-
el[
|
|
9624
|
-
|
|
9624
|
+
if (vShowOriginalDisplay in el) {
|
|
9625
|
+
el[vShowOriginalDisplay] = hasControlledDisplay ? style.display : "";
|
|
9626
|
+
if (el[vShowHidden]) {
|
|
9627
|
+
style.display = "none";
|
|
9628
|
+
}
|
|
9625
9629
|
}
|
|
9626
9630
|
}
|
|
9627
9631
|
const importantRE = /\s*!important$/;
|
|
@@ -9724,15 +9728,15 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
|
|
|
9724
9728
|
const tag = el.tagName;
|
|
9725
9729
|
if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
|
|
9726
9730
|
!tag.includes("-")) {
|
|
9727
|
-
el.
|
|
9728
|
-
const oldValue = tag === "OPTION" ? el.getAttribute("value") : el.value;
|
|
9731
|
+
const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
|
|
9729
9732
|
const newValue = value == null ? "" : value;
|
|
9730
|
-
if (oldValue !== newValue) {
|
|
9733
|
+
if (oldValue !== newValue || !("_value" in el)) {
|
|
9731
9734
|
el.value = newValue;
|
|
9732
9735
|
}
|
|
9733
9736
|
if (value == null) {
|
|
9734
9737
|
el.removeAttribute(key);
|
|
9735
9738
|
}
|
|
9739
|
+
el._value = value;
|
|
9736
9740
|
return;
|
|
9737
9741
|
}
|
|
9738
9742
|
let needRemove = false;
|
|
@@ -10406,19 +10410,19 @@ const vModelSelect = {
|
|
|
10406
10410
|
},
|
|
10407
10411
|
// set value in mounted & updated because <select> relies on its children
|
|
10408
10412
|
// <option>s.
|
|
10409
|
-
mounted(el, { value,
|
|
10410
|
-
setSelected(el, value,
|
|
10413
|
+
mounted(el, { value, modifiers: { number } }) {
|
|
10414
|
+
setSelected(el, value, number);
|
|
10411
10415
|
},
|
|
10412
10416
|
beforeUpdate(el, _binding, vnode) {
|
|
10413
10417
|
el[assignKey] = getModelAssigner(vnode);
|
|
10414
10418
|
},
|
|
10415
|
-
updated(el, { value,
|
|
10419
|
+
updated(el, { value, modifiers: { number } }) {
|
|
10416
10420
|
if (!el._assigning) {
|
|
10417
|
-
setSelected(el, value,
|
|
10421
|
+
setSelected(el, value, number);
|
|
10418
10422
|
}
|
|
10419
10423
|
}
|
|
10420
10424
|
};
|
|
10421
|
-
function setSelected(el, value,
|
|
10425
|
+
function setSelected(el, value, number) {
|
|
10422
10426
|
const isMultiple = el.multiple;
|
|
10423
10427
|
const isArrayValue = isArray(value);
|
|
10424
10428
|
if (isMultiple && !isArrayValue && !isSet(value)) {
|
|
@@ -10440,12 +10444,10 @@ function setSelected(el, value, oldValue, number) {
|
|
|
10440
10444
|
} else {
|
|
10441
10445
|
option.selected = value.has(optionValue);
|
|
10442
10446
|
}
|
|
10443
|
-
} else {
|
|
10444
|
-
if (
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
return;
|
|
10448
|
-
}
|
|
10447
|
+
} else if (looseEqual(getValue(option), value)) {
|
|
10448
|
+
if (el.selectedIndex !== i)
|
|
10449
|
+
el.selectedIndex = i;
|
|
10450
|
+
return;
|
|
10449
10451
|
}
|
|
10450
10452
|
}
|
|
10451
10453
|
if (!isMultiple && el.selectedIndex !== -1) {
|
|
@@ -11419,11 +11421,10 @@ class Tokenizer {
|
|
|
11419
11421
|
} else if (this.inSFCRoot) {
|
|
11420
11422
|
this.state = 34;
|
|
11421
11423
|
} else if (!this.inXML) {
|
|
11422
|
-
|
|
11423
|
-
if (lower === 116) {
|
|
11424
|
+
if (c === 116) {
|
|
11424
11425
|
this.state = 30;
|
|
11425
11426
|
} else {
|
|
11426
|
-
this.state =
|
|
11427
|
+
this.state = c === 115 ? 29 : 6;
|
|
11427
11428
|
}
|
|
11428
11429
|
} else {
|
|
11429
11430
|
this.state = 6;
|
|
@@ -11699,10 +11700,9 @@ class Tokenizer {
|
|
|
11699
11700
|
}
|
|
11700
11701
|
}
|
|
11701
11702
|
stateBeforeSpecialS(c) {
|
|
11702
|
-
|
|
11703
|
-
if (lower === Sequences.ScriptEnd[3]) {
|
|
11703
|
+
if (c === Sequences.ScriptEnd[3]) {
|
|
11704
11704
|
this.startSpecial(Sequences.ScriptEnd, 4);
|
|
11705
|
-
} else if (
|
|
11705
|
+
} else if (c === Sequences.StyleEnd[3]) {
|
|
11706
11706
|
this.startSpecial(Sequences.StyleEnd, 4);
|
|
11707
11707
|
} else {
|
|
11708
11708
|
this.state = 6;
|
|
@@ -11710,10 +11710,9 @@ class Tokenizer {
|
|
|
11710
11710
|
}
|
|
11711
11711
|
}
|
|
11712
11712
|
stateBeforeSpecialT(c) {
|
|
11713
|
-
|
|
11714
|
-
if (lower === Sequences.TitleEnd[3]) {
|
|
11713
|
+
if (c === Sequences.TitleEnd[3]) {
|
|
11715
11714
|
this.startSpecial(Sequences.TitleEnd, 4);
|
|
11716
|
-
} else if (
|
|
11715
|
+
} else if (c === Sequences.TextareaEnd[3]) {
|
|
11717
11716
|
this.startSpecial(Sequences.TextareaEnd, 4);
|
|
11718
11717
|
} else {
|
|
11719
11718
|
this.state = 6;
|