fix(v-show): fix v-show unmount with falsy value (#1403)

fix #1401
This commit is contained in:
underfin
2020-06-25 22:58:31 +08:00
committed by GitHub
parent 3f3b473cc8
commit d7beea015b

View File

@@ -35,8 +35,8 @@ export const vShow: ObjectDirective<VShowElement> = {
setDisplay(el, value) setDisplay(el, value)
} }
}, },
beforeUnmount(el) { beforeUnmount(el, { value }) {
setDisplay(el, true) setDisplay(el, value)
} }
} }