@vue/compat 3.4.19 → 3.4.20
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 +77 -69
- package/dist/vue.cjs.prod.js +60 -61
- package/dist/vue.esm-browser.js +77 -69
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +77 -69
- package/dist/vue.global.js +77 -69
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +71 -60
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +71 -60
- package/dist/vue.runtime.global.js +71 -60
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
package/dist/vue.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.20
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -846,20 +846,20 @@ function hasOwnProperty(key) {
|
|
|
846
846
|
return obj.hasOwnProperty(key);
|
|
847
847
|
}
|
|
848
848
|
class BaseReactiveHandler {
|
|
849
|
-
constructor(_isReadonly = false,
|
|
849
|
+
constructor(_isReadonly = false, _isShallow = false) {
|
|
850
850
|
this._isReadonly = _isReadonly;
|
|
851
|
-
this.
|
|
851
|
+
this._isShallow = _isShallow;
|
|
852
852
|
}
|
|
853
853
|
get(target, key, receiver) {
|
|
854
|
-
const isReadonly2 = this._isReadonly,
|
|
854
|
+
const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
|
|
855
855
|
if (key === "__v_isReactive") {
|
|
856
856
|
return !isReadonly2;
|
|
857
857
|
} else if (key === "__v_isReadonly") {
|
|
858
858
|
return isReadonly2;
|
|
859
859
|
} else if (key === "__v_isShallow") {
|
|
860
|
-
return
|
|
860
|
+
return isShallow2;
|
|
861
861
|
} else if (key === "__v_raw") {
|
|
862
|
-
if (receiver === (isReadonly2 ?
|
|
862
|
+
if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
863
863
|
// this means the reciever is a user proxy of the reactive proxy
|
|
864
864
|
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
865
865
|
return target;
|
|
@@ -882,7 +882,7 @@ class BaseReactiveHandler {
|
|
|
882
882
|
if (!isReadonly2) {
|
|
883
883
|
track(target, "get", key);
|
|
884
884
|
}
|
|
885
|
-
if (
|
|
885
|
+
if (isShallow2) {
|
|
886
886
|
return res;
|
|
887
887
|
}
|
|
888
888
|
if (isRef(res)) {
|
|
@@ -895,12 +895,12 @@ class BaseReactiveHandler {
|
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
class MutableReactiveHandler extends BaseReactiveHandler {
|
|
898
|
-
constructor(
|
|
899
|
-
super(false,
|
|
898
|
+
constructor(isShallow2 = false) {
|
|
899
|
+
super(false, isShallow2);
|
|
900
900
|
}
|
|
901
901
|
set(target, key, value, receiver) {
|
|
902
902
|
let oldValue = target[key];
|
|
903
|
-
if (!this.
|
|
903
|
+
if (!this._isShallow) {
|
|
904
904
|
const isOldValueReadonly = isReadonly(oldValue);
|
|
905
905
|
if (!isShallow(value) && !isReadonly(value)) {
|
|
906
906
|
oldValue = toRaw(oldValue);
|
|
@@ -952,8 +952,8 @@ class MutableReactiveHandler extends BaseReactiveHandler {
|
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
954
|
class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
955
|
-
constructor(
|
|
956
|
-
super(true,
|
|
955
|
+
constructor(isShallow2 = false) {
|
|
956
|
+
super(true, isShallow2);
|
|
957
957
|
}
|
|
958
958
|
set(target, key) {
|
|
959
959
|
{
|
|
@@ -1124,7 +1124,7 @@ function createReadonlyMethod(type) {
|
|
|
1124
1124
|
return function(...args) {
|
|
1125
1125
|
{
|
|
1126
1126
|
const key = args[0] ? `on key "${args[0]}" ` : ``;
|
|
1127
|
-
|
|
1127
|
+
warn$2(
|
|
1128
1128
|
`${capitalize(type)} operation ${key}failed: target is readonly.`,
|
|
1129
1129
|
toRaw(this)
|
|
1130
1130
|
);
|
|
@@ -1262,7 +1262,7 @@ function checkIdentityKeys(target, has2, key) {
|
|
|
1262
1262
|
const rawKey = toRaw(key);
|
|
1263
1263
|
if (rawKey !== key && has2.call(target, rawKey)) {
|
|
1264
1264
|
const type = toRawType(target);
|
|
1265
|
-
|
|
1265
|
+
warn$2(
|
|
1266
1266
|
`Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
1267
1267
|
);
|
|
1268
1268
|
}
|
|
@@ -1331,7 +1331,7 @@ function shallowReadonly(target) {
|
|
|
1331
1331
|
function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
|
|
1332
1332
|
if (!isObject(target)) {
|
|
1333
1333
|
{
|
|
1334
|
-
|
|
1334
|
+
warn$2(`value cannot be made reactive: ${String(target)}`);
|
|
1335
1335
|
}
|
|
1336
1336
|
return target;
|
|
1337
1337
|
}
|
|
@@ -1384,6 +1384,7 @@ const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
|
1384
1384
|
const COMPUTED_SIDE_EFFECT_WARN = `Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free`;
|
|
1385
1385
|
class ComputedRefImpl {
|
|
1386
1386
|
constructor(getter, _setter, isReadonly, isSSR) {
|
|
1387
|
+
this.getter = getter;
|
|
1387
1388
|
this._setter = _setter;
|
|
1388
1389
|
this.dep = void 0;
|
|
1389
1390
|
this.__v_isRef = true;
|
|
@@ -1406,7 +1407,11 @@ class ComputedRefImpl {
|
|
|
1406
1407
|
}
|
|
1407
1408
|
trackRefValue(self);
|
|
1408
1409
|
if (self.effect._dirtyLevel >= 2) {
|
|
1409
|
-
|
|
1410
|
+
if (this._warnRecursive) {
|
|
1411
|
+
warn$2(COMPUTED_SIDE_EFFECT_WARN, `
|
|
1412
|
+
|
|
1413
|
+
getter: `, this.getter);
|
|
1414
|
+
}
|
|
1410
1415
|
triggerRefValue(self, 2);
|
|
1411
1416
|
}
|
|
1412
1417
|
return self._value;
|
|
@@ -1562,7 +1567,7 @@ function customRef(factory) {
|
|
|
1562
1567
|
}
|
|
1563
1568
|
function toRefs(object) {
|
|
1564
1569
|
if (!isProxy(object)) {
|
|
1565
|
-
|
|
1570
|
+
warn$2(`toRefs() expects a reactive object but received a plain one.`);
|
|
1566
1571
|
}
|
|
1567
1572
|
const ret = isArray(object) ? new Array(object.length) : {};
|
|
1568
1573
|
for (const key in object) {
|
|
@@ -3334,6 +3339,8 @@ const SuspenseImpl = {
|
|
|
3334
3339
|
} else {
|
|
3335
3340
|
if (parentSuspense && parentSuspense.deps > 0) {
|
|
3336
3341
|
n2.suspense = n1.suspense;
|
|
3342
|
+
n2.suspense.vnode = n2;
|
|
3343
|
+
n2.el = n1.el;
|
|
3337
3344
|
return;
|
|
3338
3345
|
}
|
|
3339
3346
|
patchSuspense(
|
|
@@ -4338,7 +4345,6 @@ const BaseTransitionImpl = {
|
|
|
4338
4345
|
setup(props, { slots }) {
|
|
4339
4346
|
const instance = getCurrentInstance();
|
|
4340
4347
|
const state = useTransitionState();
|
|
4341
|
-
let prevTransitionKey;
|
|
4342
4348
|
return () => {
|
|
4343
4349
|
const children = slots.default && getTransitionRawChildren(slots.default(), true);
|
|
4344
4350
|
if (!children || !children.length) {
|
|
@@ -4381,18 +4387,7 @@ const BaseTransitionImpl = {
|
|
|
4381
4387
|
setTransitionHooks(innerChild, enterHooks);
|
|
4382
4388
|
const oldChild = instance.subTree;
|
|
4383
4389
|
const oldInnerChild = oldChild && getKeepAliveChild(oldChild);
|
|
4384
|
-
|
|
4385
|
-
const { getTransitionKey } = innerChild.type;
|
|
4386
|
-
if (getTransitionKey) {
|
|
4387
|
-
const key = getTransitionKey();
|
|
4388
|
-
if (prevTransitionKey === void 0) {
|
|
4389
|
-
prevTransitionKey = key;
|
|
4390
|
-
} else if (key !== prevTransitionKey) {
|
|
4391
|
-
prevTransitionKey = key;
|
|
4392
|
-
transitionKeyChanged = true;
|
|
4393
|
-
}
|
|
4394
|
-
}
|
|
4395
|
-
if (oldInnerChild && oldInnerChild.type !== Comment && (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) {
|
|
4390
|
+
if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild)) {
|
|
4396
4391
|
const leavingHooks = resolveTransitionHooks(
|
|
4397
4392
|
oldInnerChild,
|
|
4398
4393
|
rawProps,
|
|
@@ -6580,7 +6575,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6580
6575
|
return vm;
|
|
6581
6576
|
}
|
|
6582
6577
|
}
|
|
6583
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6578
|
+
Vue.version = `2.6.14-compat:${"3.4.20"}`;
|
|
6584
6579
|
Vue.config = singletonApp.config;
|
|
6585
6580
|
Vue.use = (p, ...options) => {
|
|
6586
6581
|
if (p && isFunction(p.install)) {
|
|
@@ -10843,9 +10838,8 @@ const unsetCurrentInstance = () => {
|
|
|
10843
10838
|
internalSetCurrentInstance(null);
|
|
10844
10839
|
};
|
|
10845
10840
|
const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
|
|
10846
|
-
function validateComponentName(name,
|
|
10847
|
-
|
|
10848
|
-
if (isBuiltInTag(name) || appIsNativeTag(name)) {
|
|
10841
|
+
function validateComponentName(name, { isNativeTag }) {
|
|
10842
|
+
if (isBuiltInTag(name) || isNativeTag(name)) {
|
|
10849
10843
|
warn$1(
|
|
10850
10844
|
"Do not use built-in or reserved HTML elements as component id: " + name
|
|
10851
10845
|
);
|
|
@@ -11152,7 +11146,14 @@ function isClassComponent(value) {
|
|
|
11152
11146
|
}
|
|
11153
11147
|
|
|
11154
11148
|
const computed = (getterOrOptions, debugOptions) => {
|
|
11155
|
-
|
|
11149
|
+
const c = computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
11150
|
+
{
|
|
11151
|
+
const i = getCurrentInstance();
|
|
11152
|
+
if (i && i.appContext.config.warnRecursiveComputed) {
|
|
11153
|
+
c._warnRecursive = true;
|
|
11154
|
+
}
|
|
11155
|
+
}
|
|
11156
|
+
return c;
|
|
11156
11157
|
};
|
|
11157
11158
|
|
|
11158
11159
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
@@ -11430,7 +11431,7 @@ function isMemoSame(cached, memo) {
|
|
|
11430
11431
|
return true;
|
|
11431
11432
|
}
|
|
11432
11433
|
|
|
11433
|
-
const version = "3.4.
|
|
11434
|
+
const version = "3.4.20";
|
|
11434
11435
|
const warn = warn$1 ;
|
|
11435
11436
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11436
11437
|
const devtools = devtools$1 ;
|
|
@@ -11843,10 +11844,11 @@ function patchClass(el, value, isSVG) {
|
|
|
11843
11844
|
}
|
|
11844
11845
|
}
|
|
11845
11846
|
|
|
11846
|
-
const
|
|
11847
|
+
const vShowOriginalDisplay = Symbol("_vod");
|
|
11848
|
+
const vShowHidden = Symbol("_vsh");
|
|
11847
11849
|
const vShow = {
|
|
11848
11850
|
beforeMount(el, { value }, { transition }) {
|
|
11849
|
-
el[
|
|
11851
|
+
el[vShowOriginalDisplay] = el.style.display === "none" ? "" : el.style.display;
|
|
11850
11852
|
if (transition && value) {
|
|
11851
11853
|
transition.beforeEnter(el);
|
|
11852
11854
|
} else {
|
|
@@ -11859,7 +11861,7 @@ const vShow = {
|
|
|
11859
11861
|
}
|
|
11860
11862
|
},
|
|
11861
11863
|
updated(el, { value, oldValue }, { transition }) {
|
|
11862
|
-
if (!value === !oldValue
|
|
11864
|
+
if (!value === !oldValue)
|
|
11863
11865
|
return;
|
|
11864
11866
|
if (transition) {
|
|
11865
11867
|
if (value) {
|
|
@@ -11883,7 +11885,8 @@ const vShow = {
|
|
|
11883
11885
|
vShow.name = "show";
|
|
11884
11886
|
}
|
|
11885
11887
|
function setDisplay(el, value) {
|
|
11886
|
-
el.style.display = value ? el[
|
|
11888
|
+
el.style.display = value ? el[vShowOriginalDisplay] : "none";
|
|
11889
|
+
el[vShowHidden] = !value;
|
|
11887
11890
|
}
|
|
11888
11891
|
function initVShowForSSR() {
|
|
11889
11892
|
vShow.getSSRProps = ({ value }) => {
|
|
@@ -11902,13 +11905,21 @@ const displayRE = /(^|;)\s*display\s*:/;
|
|
|
11902
11905
|
function patchStyle(el, prev, next) {
|
|
11903
11906
|
const style = el.style;
|
|
11904
11907
|
const isCssString = isString(next);
|
|
11905
|
-
const currentDisplay = style.display;
|
|
11906
11908
|
let hasControlledDisplay = false;
|
|
11907
11909
|
if (next && !isCssString) {
|
|
11908
|
-
if (prev
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
|
|
11910
|
+
if (prev) {
|
|
11911
|
+
if (!isString(prev)) {
|
|
11912
|
+
for (const key in prev) {
|
|
11913
|
+
if (next[key] == null) {
|
|
11914
|
+
setStyle(style, key, "");
|
|
11915
|
+
}
|
|
11916
|
+
}
|
|
11917
|
+
} else {
|
|
11918
|
+
for (const prevStyle of prev.split(";")) {
|
|
11919
|
+
const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim();
|
|
11920
|
+
if (next[key] == null) {
|
|
11921
|
+
setStyle(style, key, "");
|
|
11922
|
+
}
|
|
11912
11923
|
}
|
|
11913
11924
|
}
|
|
11914
11925
|
}
|
|
@@ -11932,9 +11943,11 @@ function patchStyle(el, prev, next) {
|
|
|
11932
11943
|
el.removeAttribute("style");
|
|
11933
11944
|
}
|
|
11934
11945
|
}
|
|
11935
|
-
if (
|
|
11936
|
-
el[
|
|
11937
|
-
|
|
11946
|
+
if (vShowOriginalDisplay in el) {
|
|
11947
|
+
el[vShowOriginalDisplay] = hasControlledDisplay ? style.display : "";
|
|
11948
|
+
if (el[vShowHidden]) {
|
|
11949
|
+
style.display = "none";
|
|
11950
|
+
}
|
|
11938
11951
|
}
|
|
11939
11952
|
}
|
|
11940
11953
|
const semicolonRE = /[^\\];\s*$/;
|
|
@@ -12046,7 +12059,7 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
|
|
|
12046
12059
|
if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
|
|
12047
12060
|
!tag.includes("-")) {
|
|
12048
12061
|
el._value = value;
|
|
12049
|
-
const oldValue = tag === "OPTION" ? el.getAttribute("value") : el.value;
|
|
12062
|
+
const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
|
|
12050
12063
|
const newValue = value == null ? "" : value;
|
|
12051
12064
|
if (oldValue !== newValue) {
|
|
12052
12065
|
el.value = newValue;
|
|
@@ -12762,19 +12775,19 @@ const vModelSelect = {
|
|
|
12762
12775
|
},
|
|
12763
12776
|
// set value in mounted & updated because <select> relies on its children
|
|
12764
12777
|
// <option>s.
|
|
12765
|
-
mounted(el, { value,
|
|
12766
|
-
setSelected(el, value,
|
|
12778
|
+
mounted(el, { value, modifiers: { number } }) {
|
|
12779
|
+
setSelected(el, value, number);
|
|
12767
12780
|
},
|
|
12768
12781
|
beforeUpdate(el, _binding, vnode) {
|
|
12769
12782
|
el[assignKey] = getModelAssigner(vnode);
|
|
12770
12783
|
},
|
|
12771
|
-
updated(el, { value,
|
|
12784
|
+
updated(el, { value, modifiers: { number } }) {
|
|
12772
12785
|
if (!el._assigning) {
|
|
12773
|
-
setSelected(el, value,
|
|
12786
|
+
setSelected(el, value, number);
|
|
12774
12787
|
}
|
|
12775
12788
|
}
|
|
12776
12789
|
};
|
|
12777
|
-
function setSelected(el, value,
|
|
12790
|
+
function setSelected(el, value, number) {
|
|
12778
12791
|
const isMultiple = el.multiple;
|
|
12779
12792
|
const isArrayValue = isArray(value);
|
|
12780
12793
|
if (isMultiple && !isArrayValue && !isSet(value)) {
|
|
@@ -12799,12 +12812,10 @@ function setSelected(el, value, oldValue, number) {
|
|
|
12799
12812
|
} else {
|
|
12800
12813
|
option.selected = value.has(optionValue);
|
|
12801
12814
|
}
|
|
12802
|
-
} else {
|
|
12803
|
-
if (
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
return;
|
|
12807
|
-
}
|
|
12815
|
+
} else if (looseEqual(getValue(option), value)) {
|
|
12816
|
+
if (el.selectedIndex !== i)
|
|
12817
|
+
el.selectedIndex = i;
|
|
12818
|
+
return;
|
|
12808
12819
|
}
|
|
12809
12820
|
}
|
|
12810
12821
|
if (!isMultiple && el.selectedIndex !== -1) {
|
|
@@ -13849,11 +13860,10 @@ class Tokenizer {
|
|
|
13849
13860
|
} else if (this.inSFCRoot) {
|
|
13850
13861
|
this.state = 34;
|
|
13851
13862
|
} else if (!this.inXML) {
|
|
13852
|
-
|
|
13853
|
-
if (lower === 116) {
|
|
13863
|
+
if (c === 116) {
|
|
13854
13864
|
this.state = 30;
|
|
13855
13865
|
} else {
|
|
13856
|
-
this.state =
|
|
13866
|
+
this.state = c === 115 ? 29 : 6;
|
|
13857
13867
|
}
|
|
13858
13868
|
} else {
|
|
13859
13869
|
this.state = 6;
|
|
@@ -14129,10 +14139,9 @@ class Tokenizer {
|
|
|
14129
14139
|
}
|
|
14130
14140
|
}
|
|
14131
14141
|
stateBeforeSpecialS(c) {
|
|
14132
|
-
|
|
14133
|
-
if (lower === Sequences.ScriptEnd[3]) {
|
|
14142
|
+
if (c === Sequences.ScriptEnd[3]) {
|
|
14134
14143
|
this.startSpecial(Sequences.ScriptEnd, 4);
|
|
14135
|
-
} else if (
|
|
14144
|
+
} else if (c === Sequences.StyleEnd[3]) {
|
|
14136
14145
|
this.startSpecial(Sequences.StyleEnd, 4);
|
|
14137
14146
|
} else {
|
|
14138
14147
|
this.state = 6;
|
|
@@ -14140,10 +14149,9 @@ class Tokenizer {
|
|
|
14140
14149
|
}
|
|
14141
14150
|
}
|
|
14142
14151
|
stateBeforeSpecialT(c) {
|
|
14143
|
-
|
|
14144
|
-
if (lower === Sequences.TitleEnd[3]) {
|
|
14152
|
+
if (c === Sequences.TitleEnd[3]) {
|
|
14145
14153
|
this.startSpecial(Sequences.TitleEnd, 4);
|
|
14146
|
-
} else if (
|
|
14154
|
+
} else if (c === Sequences.TextareaEnd[3]) {
|
|
14147
14155
|
this.startSpecial(Sequences.TextareaEnd, 4);
|
|
14148
14156
|
} else {
|
|
14149
14157
|
this.state = 6;
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.20
|
|
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;
|
|
@@ -2383,6 +2384,8 @@ const SuspenseImpl = {
|
|
|
2383
2384
|
} else {
|
|
2384
2385
|
if (parentSuspense && parentSuspense.deps > 0) {
|
|
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.20"}`;
|
|
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.20";
|
|
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$/;
|
|
@@ -9725,7 +9729,7 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
|
|
|
9725
9729
|
if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
|
|
9726
9730
|
!tag.includes("-")) {
|
|
9727
9731
|
el._value = value;
|
|
9728
|
-
const oldValue = tag === "OPTION" ? el.getAttribute("value") : el.value;
|
|
9732
|
+
const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
|
|
9729
9733
|
const newValue = value == null ? "" : value;
|
|
9730
9734
|
if (oldValue !== newValue) {
|
|
9731
9735
|
el.value = newValue;
|
|
@@ -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;
|