fix(v-show): v-show takes higher priority than style attribute (#3230)
fix #2757
This commit is contained in:
@@ -20,7 +20,8 @@ export const vShow: ObjectDirective<VShowElement> = {
|
||||
}
|
||||
},
|
||||
updated(el, { value, oldValue }, { transition }) {
|
||||
if (transition && value !== oldValue) {
|
||||
if (!value === !oldValue) return
|
||||
if (transition) {
|
||||
if (value) {
|
||||
transition.beforeEnter(el)
|
||||
setDisplay(el, true)
|
||||
|
||||
Reference in New Issue
Block a user