|
|
@@ -11,7 +11,7 @@ function locateNode (vnode: VNode): VNodeWithData {
|
|
|
}
|
|
|
|
|
|
export default {
|
|
|
- bind (el: HTMLElement, { value }: VNodeDirective, vnode: VNodeWithData) {
|
|
|
+ bind (el: any, { value }: VNodeDirective, vnode: VNodeWithData) {
|
|
|
vnode = locateNode(vnode)
|
|
|
const transition = vnode.data && vnode.data.transition
|
|
|
if (value && transition && transition.appear && !isIE9) {
|
|
|
@@ -21,7 +21,7 @@ export default {
|
|
|
el.style.display = value ? originalDisplay : 'none'
|
|
|
el.__vOriginalDisplay = originalDisplay
|
|
|
},
|
|
|
- update (el: HTMLElement, { value, oldValue }: VNodeDirective, vnode: VNodeWithData) {
|
|
|
+ update (el: any, { value, oldValue }: VNodeDirective, vnode: VNodeWithData) {
|
|
|
/* istanbul ignore if */
|
|
|
if (value === oldValue) return
|
|
|
vnode = locateNode(vnode)
|