vue 3.4.17 → 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 +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +12 -5
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +12 -5
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +12 -5
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +12 -5
- package/dist/vue.runtime.global.prod.js +4 -4
- package/package.json +6 -6
package/dist/vue.cjs.js
CHANGED
package/dist/vue.cjs.prod.js
CHANGED
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.4.
|
|
2
|
+
* vue v3.4.18
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -5811,7 +5811,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
5811
5811
|
return res;
|
|
5812
5812
|
}
|
|
5813
5813
|
function validatePropName(key) {
|
|
5814
|
-
if (key[0] !== "$") {
|
|
5814
|
+
if (key[0] !== "$" && !isReservedProp(key)) {
|
|
5815
5815
|
return true;
|
|
5816
5816
|
} else {
|
|
5817
5817
|
warn$1(`Invalid prop name: "${key}" is a reserved property.`);
|
|
@@ -9587,7 +9587,7 @@ function isMemoSame(cached, memo) {
|
|
|
9587
9587
|
return true;
|
|
9588
9588
|
}
|
|
9589
9589
|
|
|
9590
|
-
const version = "3.4.
|
|
9590
|
+
const version = "3.4.18";
|
|
9591
9591
|
const warn = warn$1 ;
|
|
9592
9592
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9593
9593
|
const devtools = devtools$1 ;
|
|
@@ -9964,7 +9964,7 @@ const vShow = {
|
|
|
9964
9964
|
}
|
|
9965
9965
|
},
|
|
9966
9966
|
updated(el, { value, oldValue }, { transition }) {
|
|
9967
|
-
if (!value === !oldValue)
|
|
9967
|
+
if (!value === !oldValue && el.style.display === el[vShowOldKey])
|
|
9968
9968
|
return;
|
|
9969
9969
|
if (transition) {
|
|
9970
9970
|
if (value) {
|
|
@@ -10057,10 +10057,12 @@ function setVarsOnNode(el, vars) {
|
|
|
10057
10057
|
}
|
|
10058
10058
|
}
|
|
10059
10059
|
|
|
10060
|
+
const displayRE = /(^|;)\s*display\s*:/;
|
|
10060
10061
|
function patchStyle(el, prev, next) {
|
|
10061
10062
|
const style = el.style;
|
|
10062
|
-
const currentDisplay = style.display;
|
|
10063
10063
|
const isCssString = isString(next);
|
|
10064
|
+
const currentDisplay = style.display;
|
|
10065
|
+
let hasControlledDisplay = false;
|
|
10064
10066
|
if (next && !isCssString) {
|
|
10065
10067
|
if (prev && !isString(prev)) {
|
|
10066
10068
|
for (const key in prev) {
|
|
@@ -10070,6 +10072,9 @@ function patchStyle(el, prev, next) {
|
|
|
10070
10072
|
}
|
|
10071
10073
|
}
|
|
10072
10074
|
for (const key in next) {
|
|
10075
|
+
if (key === "display") {
|
|
10076
|
+
hasControlledDisplay = true;
|
|
10077
|
+
}
|
|
10073
10078
|
setStyle(style, key, next[key]);
|
|
10074
10079
|
}
|
|
10075
10080
|
} else {
|
|
@@ -10080,12 +10085,14 @@ function patchStyle(el, prev, next) {
|
|
|
10080
10085
|
next += ";" + cssVarText;
|
|
10081
10086
|
}
|
|
10082
10087
|
style.cssText = next;
|
|
10088
|
+
hasControlledDisplay = displayRE.test(next);
|
|
10083
10089
|
}
|
|
10084
10090
|
} else if (prev) {
|
|
10085
10091
|
el.removeAttribute("style");
|
|
10086
10092
|
}
|
|
10087
10093
|
}
|
|
10088
10094
|
if (vShowOldKey in el) {
|
|
10095
|
+
el[vShowOldKey] = hasControlledDisplay ? style.display : "";
|
|
10089
10096
|
style.display = currentDisplay;
|
|
10090
10097
|
}
|
|
10091
10098
|
}
|