diff --git a/src/components/mdp-ui/directive/adaptive.js b/src/components/mdp-ui/directive/adaptive.js index 366a345..3b64bab 100644 --- a/src/components/mdp-ui/directive/adaptive.js +++ b/src/components/mdp-ui/directive/adaptive.js @@ -2,7 +2,7 @@ const doResize = async (el, binding, vnode) => { // 获取表格Dom对象 - if(vnode.$table){ + if(vnode.componentInstance){ const { componentInstance: $table } = await vnode @@ -50,6 +50,7 @@ export default { window.addEventListener('resize', el.resizeListener) }, update(el, binding, vnode) { + debugger; doResize(el, binding, vnode) }, // 绑定默认高度