From 035b5820794054f75536969f2873f0c2f31eeaa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Fri, 2 Feb 2024 22:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E8=87=AA=E9=80=82=E5=BA=94?= =?UTF-8?q?=E9=AB=98=E5=BA=A6=E6=8C=87=E4=BB=A4=EF=BC=9A=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E3=80=81=E4=BB=BB=E6=84=8F=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E8=87=AA=E9=80=82=E5=BA=94=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/mdp-ui/directive/adaptive.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }, // 绑定默认高度