@vue/runtime-dom
Advanced tools
Comparing version 3.4.17 to 3.4.18
/** | ||
* @vue/runtime-dom v3.4.17 | ||
* @vue/runtime-dom v3.4.18 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -380,3 +380,3 @@ * @license MIT | ||
updated(el, { value, oldValue }, { transition }) { | ||
if (!value === !oldValue) | ||
if (!value === !oldValue && el.style.display === el[vShowOldKey]) | ||
return; | ||
@@ -420,6 +420,8 @@ if (transition) { | ||
const displayRE = /(^|;)\s*display\s*:/; | ||
function patchStyle(el, prev, next) { | ||
const style = el.style; | ||
const isCssString = shared.isString(next); | ||
const currentDisplay = style.display; | ||
const isCssString = shared.isString(next); | ||
let hasControlledDisplay = false; | ||
if (next && !isCssString) { | ||
@@ -434,2 +436,5 @@ if (prev && !shared.isString(prev)) { | ||
for (const key in next) { | ||
if (key === "display") { | ||
hasControlledDisplay = true; | ||
} | ||
setStyle(style, key, next[key]); | ||
@@ -445,2 +450,3 @@ } | ||
style.cssText = next; | ||
hasControlledDisplay = displayRE.test(next); | ||
} | ||
@@ -452,2 +458,3 @@ } else if (prev) { | ||
if (vShowOldKey in el) { | ||
el[vShowOldKey] = hasControlledDisplay ? style.display : ""; | ||
style.display = currentDisplay; | ||
@@ -454,0 +461,0 @@ } |
/** | ||
* @vue/runtime-dom v3.4.17 | ||
* @vue/runtime-dom v3.4.18 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -377,3 +377,3 @@ * @license MIT | ||
updated(el, { value, oldValue }, { transition }) { | ||
if (!value === !oldValue) | ||
if (!value === !oldValue && el.style.display === el[vShowOldKey]) | ||
return; | ||
@@ -414,6 +414,8 @@ if (transition) { | ||
const displayRE = /(^|;)\s*display\s*:/; | ||
function patchStyle(el, prev, next) { | ||
const style = el.style; | ||
const isCssString = shared.isString(next); | ||
const currentDisplay = style.display; | ||
const isCssString = shared.isString(next); | ||
let hasControlledDisplay = false; | ||
if (next && !isCssString) { | ||
@@ -428,2 +430,5 @@ if (prev && !shared.isString(prev)) { | ||
for (const key in next) { | ||
if (key === "display") { | ||
hasControlledDisplay = true; | ||
} | ||
setStyle(style, key, next[key]); | ||
@@ -439,2 +444,3 @@ } | ||
style.cssText = next; | ||
hasControlledDisplay = displayRE.test(next); | ||
} | ||
@@ -446,2 +452,3 @@ } else if (prev) { | ||
if (vShowOldKey in el) { | ||
el[vShowOldKey] = hasControlledDisplay ? style.display : ""; | ||
style.display = currentDisplay; | ||
@@ -448,0 +455,0 @@ } |
/** | ||
* @vue/runtime-dom v3.4.17 | ||
* @vue/runtime-dom v3.4.18 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -377,3 +377,3 @@ * @license MIT | ||
updated(el, { value, oldValue }, { transition }) { | ||
if (!value === !oldValue) | ||
if (!value === !oldValue && el.style.display === el[vShowOldKey]) | ||
return; | ||
@@ -478,6 +478,8 @@ if (transition) { | ||
const displayRE = /(^|;)\s*display\s*:/; | ||
function patchStyle(el, prev, next) { | ||
const style = el.style; | ||
const isCssString = isString(next); | ||
const currentDisplay = style.display; | ||
const isCssString = isString(next); | ||
let hasControlledDisplay = false; | ||
if (next && !isCssString) { | ||
@@ -492,2 +494,5 @@ if (prev && !isString(prev)) { | ||
for (const key in next) { | ||
if (key === "display") { | ||
hasControlledDisplay = true; | ||
} | ||
setStyle(style, key, next[key]); | ||
@@ -503,2 +508,3 @@ } | ||
style.cssText = next; | ||
hasControlledDisplay = displayRE.test(next); | ||
} | ||
@@ -510,2 +516,3 @@ } else if (prev) { | ||
if (vShowOldKey in el) { | ||
el[vShowOldKey] = hasControlledDisplay ? style.display : ""; | ||
style.display = currentDisplay; | ||
@@ -512,0 +519,0 @@ } |
{ | ||
"name": "@vue/runtime-dom", | ||
"version": "3.4.17", | ||
"version": "3.4.18", | ||
"description": "@vue/runtime-dom", | ||
@@ -53,5 +53,5 @@ "main": "index.js", | ||
"csstype": "^3.1.3", | ||
"@vue/shared": "3.4.17", | ||
"@vue/runtime-core": "3.4.17" | ||
"@vue/shared": "3.4.18", | ||
"@vue/runtime-core": "3.4.18" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1048374
28755
+ Added@vue/reactivity@3.4.18(transitive)
+ Added@vue/runtime-core@3.4.18(transitive)
+ Added@vue/shared@3.4.18(transitive)
- Removed@vue/reactivity@3.4.17(transitive)
- Removed@vue/runtime-core@3.4.17(transitive)
- Removed@vue/shared@3.4.17(transitive)
Updated@vue/runtime-core@3.4.18
Updated@vue/shared@3.4.18