@vue/compat 3.4.16 → 3.4.18
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 +12 -6
- package/dist/vue.cjs.prod.js +12 -6
- package/dist/vue.esm-browser.js +12 -6
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +12 -6
- package/dist/vue.global.js +12 -6
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +12 -6
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +12 -6
- package/dist/vue.runtime.global.js +12 -6
- package/dist/vue.runtime.global.prod.js +4 -4
- 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.18
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -6580,7 +6580,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6580
6580
|
return vm;
|
|
6581
6581
|
}
|
|
6582
6582
|
}
|
|
6583
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6583
|
+
Vue.version = `2.6.14-compat:${"3.4.18"}`;
|
|
6584
6584
|
Vue.config = singletonApp.config;
|
|
6585
6585
|
Vue.use = (p, ...options) => {
|
|
6586
6586
|
if (p && isFunction(p.install)) {
|
|
@@ -7517,7 +7517,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7517
7517
|
return res;
|
|
7518
7518
|
}
|
|
7519
7519
|
function validatePropName(key) {
|
|
7520
|
-
if (key[0] !== "$") {
|
|
7520
|
+
if (key[0] !== "$" && !isReservedProp(key)) {
|
|
7521
7521
|
return true;
|
|
7522
7522
|
} else {
|
|
7523
7523
|
warn$1(`Invalid prop name: "${key}" is a reserved property.`);
|
|
@@ -11419,7 +11419,7 @@ function isMemoSame(cached, memo) {
|
|
|
11419
11419
|
return true;
|
|
11420
11420
|
}
|
|
11421
11421
|
|
|
11422
|
-
const version = "3.4.
|
|
11422
|
+
const version = "3.4.18";
|
|
11423
11423
|
const warn = warn$1 ;
|
|
11424
11424
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11425
11425
|
const devtools = devtools$1 ;
|
|
@@ -11887,10 +11887,12 @@ function useCssVars(getter) {
|
|
|
11887
11887
|
return;
|
|
11888
11888
|
}
|
|
11889
11889
|
|
|
11890
|
+
const displayRE = /(^|;)\s*display\s*:/;
|
|
11890
11891
|
function patchStyle(el, prev, next) {
|
|
11891
11892
|
const style = el.style;
|
|
11892
|
-
const currentDisplay = style.display;
|
|
11893
11893
|
const isCssString = isString(next);
|
|
11894
|
+
const currentDisplay = style.display;
|
|
11895
|
+
let hasControlledDisplay = false;
|
|
11894
11896
|
if (next && !isCssString) {
|
|
11895
11897
|
if (prev && !isString(prev)) {
|
|
11896
11898
|
for (const key in prev) {
|
|
@@ -11900,6 +11902,9 @@ function patchStyle(el, prev, next) {
|
|
|
11900
11902
|
}
|
|
11901
11903
|
}
|
|
11902
11904
|
for (const key in next) {
|
|
11905
|
+
if (key === "display") {
|
|
11906
|
+
hasControlledDisplay = true;
|
|
11907
|
+
}
|
|
11903
11908
|
setStyle(style, key, next[key]);
|
|
11904
11909
|
}
|
|
11905
11910
|
} else {
|
|
@@ -11910,13 +11915,14 @@ function patchStyle(el, prev, next) {
|
|
|
11910
11915
|
next += ";" + cssVarText;
|
|
11911
11916
|
}
|
|
11912
11917
|
style.cssText = next;
|
|
11918
|
+
hasControlledDisplay = displayRE.test(next);
|
|
11913
11919
|
}
|
|
11914
11920
|
} else if (prev) {
|
|
11915
11921
|
el.removeAttribute("style");
|
|
11916
11922
|
}
|
|
11917
11923
|
}
|
|
11918
11924
|
if (vShowOldKey in el) {
|
|
11919
|
-
el[vShowOldKey] = style.display;
|
|
11925
|
+
el[vShowOldKey] = hasControlledDisplay ? style.display : "";
|
|
11920
11926
|
style.display = currentDisplay;
|
|
11921
11927
|
}
|
|
11922
11928
|
}
|
package/dist/vue.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.18
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -5257,7 +5257,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5257
5257
|
return vm;
|
|
5258
5258
|
}
|
|
5259
5259
|
}
|
|
5260
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5260
|
+
Vue.version = `2.6.14-compat:${"3.4.18"}`;
|
|
5261
5261
|
Vue.config = singletonApp.config;
|
|
5262
5262
|
Vue.use = (p, ...options) => {
|
|
5263
5263
|
if (p && isFunction(p.install)) {
|
|
@@ -6065,7 +6065,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
6065
6065
|
return res;
|
|
6066
6066
|
}
|
|
6067
6067
|
function validatePropName(key) {
|
|
6068
|
-
if (key[0] !== "$") {
|
|
6068
|
+
if (key[0] !== "$" && !isReservedProp(key)) {
|
|
6069
6069
|
return true;
|
|
6070
6070
|
}
|
|
6071
6071
|
return false;
|
|
@@ -9117,7 +9117,7 @@ function isMemoSame(cached, memo) {
|
|
|
9117
9117
|
return true;
|
|
9118
9118
|
}
|
|
9119
9119
|
|
|
9120
|
-
const version = "3.4.
|
|
9120
|
+
const version = "3.4.18";
|
|
9121
9121
|
const warn$1 = NOOP;
|
|
9122
9122
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9123
9123
|
const devtools = void 0;
|
|
@@ -9579,10 +9579,12 @@ function useCssVars(getter) {
|
|
|
9579
9579
|
return;
|
|
9580
9580
|
}
|
|
9581
9581
|
|
|
9582
|
+
const displayRE = /(^|;)\s*display\s*:/;
|
|
9582
9583
|
function patchStyle(el, prev, next) {
|
|
9583
9584
|
const style = el.style;
|
|
9584
|
-
const currentDisplay = style.display;
|
|
9585
9585
|
const isCssString = isString(next);
|
|
9586
|
+
const currentDisplay = style.display;
|
|
9587
|
+
let hasControlledDisplay = false;
|
|
9586
9588
|
if (next && !isCssString) {
|
|
9587
9589
|
if (prev && !isString(prev)) {
|
|
9588
9590
|
for (const key in prev) {
|
|
@@ -9592,6 +9594,9 @@ function patchStyle(el, prev, next) {
|
|
|
9592
9594
|
}
|
|
9593
9595
|
}
|
|
9594
9596
|
for (const key in next) {
|
|
9597
|
+
if (key === "display") {
|
|
9598
|
+
hasControlledDisplay = true;
|
|
9599
|
+
}
|
|
9595
9600
|
setStyle(style, key, next[key]);
|
|
9596
9601
|
}
|
|
9597
9602
|
} else {
|
|
@@ -9602,13 +9607,14 @@ function patchStyle(el, prev, next) {
|
|
|
9602
9607
|
next += ";" + cssVarText;
|
|
9603
9608
|
}
|
|
9604
9609
|
style.cssText = next;
|
|
9610
|
+
hasControlledDisplay = displayRE.test(next);
|
|
9605
9611
|
}
|
|
9606
9612
|
} else if (prev) {
|
|
9607
9613
|
el.removeAttribute("style");
|
|
9608
9614
|
}
|
|
9609
9615
|
}
|
|
9610
9616
|
if (vShowOldKey in el) {
|
|
9611
|
-
el[vShowOldKey] = style.display;
|
|
9617
|
+
el[vShowOldKey] = hasControlledDisplay ? style.display : "";
|
|
9612
9618
|
style.display = currentDisplay;
|
|
9613
9619
|
}
|
|
9614
9620
|
}
|
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.18
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -6502,7 +6502,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6502
6502
|
return vm;
|
|
6503
6503
|
}
|
|
6504
6504
|
}
|
|
6505
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6505
|
+
Vue.version = `2.6.14-compat:${"3.4.18"}`;
|
|
6506
6506
|
Vue.config = singletonApp.config;
|
|
6507
6507
|
Vue.use = (p, ...options) => {
|
|
6508
6508
|
if (p && isFunction(p.install)) {
|
|
@@ -7439,7 +7439,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
7439
7439
|
return res;
|
|
7440
7440
|
}
|
|
7441
7441
|
function validatePropName(key) {
|
|
7442
|
-
if (key[0] !== "$") {
|
|
7442
|
+
if (key[0] !== "$" && !isReservedProp(key)) {
|
|
7443
7443
|
return true;
|
|
7444
7444
|
} else {
|
|
7445
7445
|
warn$1(`Invalid prop name: "${key}" is a reserved property.`);
|
|
@@ -11324,7 +11324,7 @@ function isMemoSame(cached, memo) {
|
|
|
11324
11324
|
return true;
|
|
11325
11325
|
}
|
|
11326
11326
|
|
|
11327
|
-
const version = "3.4.
|
|
11327
|
+
const version = "3.4.18";
|
|
11328
11328
|
const warn = warn$1 ;
|
|
11329
11329
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11330
11330
|
const devtools = devtools$1 ;
|
|
@@ -11838,10 +11838,12 @@ function setVarsOnNode(el, vars) {
|
|
|
11838
11838
|
}
|
|
11839
11839
|
}
|
|
11840
11840
|
|
|
11841
|
+
const displayRE = /(^|;)\s*display\s*:/;
|
|
11841
11842
|
function patchStyle(el, prev, next) {
|
|
11842
11843
|
const style = el.style;
|
|
11843
|
-
const currentDisplay = style.display;
|
|
11844
11844
|
const isCssString = isString(next);
|
|
11845
|
+
const currentDisplay = style.display;
|
|
11846
|
+
let hasControlledDisplay = false;
|
|
11845
11847
|
if (next && !isCssString) {
|
|
11846
11848
|
if (prev && !isString(prev)) {
|
|
11847
11849
|
for (const key in prev) {
|
|
@@ -11851,6 +11853,9 @@ function patchStyle(el, prev, next) {
|
|
|
11851
11853
|
}
|
|
11852
11854
|
}
|
|
11853
11855
|
for (const key in next) {
|
|
11856
|
+
if (key === "display") {
|
|
11857
|
+
hasControlledDisplay = true;
|
|
11858
|
+
}
|
|
11854
11859
|
setStyle(style, key, next[key]);
|
|
11855
11860
|
}
|
|
11856
11861
|
} else {
|
|
@@ -11861,13 +11866,14 @@ function patchStyle(el, prev, next) {
|
|
|
11861
11866
|
next += ";" + cssVarText;
|
|
11862
11867
|
}
|
|
11863
11868
|
style.cssText = next;
|
|
11869
|
+
hasControlledDisplay = displayRE.test(next);
|
|
11864
11870
|
}
|
|
11865
11871
|
} else if (prev) {
|
|
11866
11872
|
el.removeAttribute("style");
|
|
11867
11873
|
}
|
|
11868
11874
|
}
|
|
11869
11875
|
if (vShowOldKey in el) {
|
|
11870
|
-
el[vShowOldKey] = style.display;
|
|
11876
|
+
el[vShowOldKey] = hasControlledDisplay ? style.display : "";
|
|
11871
11877
|
style.display = currentDisplay;
|
|
11872
11878
|
}
|
|
11873
11879
|
}
|