fix[adaptive.js]: fixed v-el-height-adaptive-table directive bug (#1924)
This commit is contained in:
parent
952da32879
commit
c00564617e
|
@ -29,13 +29,13 @@ export default {
|
||||||
el.resizeListener = () => {
|
el.resizeListener = () => {
|
||||||
doResize(el, binding, vnode)
|
doResize(el, binding, vnode)
|
||||||
}
|
}
|
||||||
|
// parameter 1 is must be "Element" type
|
||||||
addResizeListener(el, el.resizeListener)
|
addResizeListener(window.document.body, el.resizeListener)
|
||||||
},
|
},
|
||||||
inserted(el, binding, vnode) {
|
inserted(el, binding, vnode) {
|
||||||
doResize(el, binding, vnode)
|
doResize(el, binding, vnode)
|
||||||
},
|
},
|
||||||
unbind(el) {
|
unbind(el) {
|
||||||
removeResizeListener(el, el.resizeListener)
|
removeResizeListener(window.document.body, el.resizeListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue