From f530ad309b437eb18a65094b2bd7039a77bf6ca0 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 23:59:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5mdp-ui=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C1.=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=202.=E8=A7=A3?= =?UTF-8?q?=E5=86=B3mdp-table=E4=B8=AD=20params=E5=8F=82=E6=95=B0=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E4=BC=A0=E9=80=92=E5=88=B0=E6=9F=A5=E8=AF=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=9A=84=E9=97=AE=E9=A2=98?= 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 366a3459..3b64babc 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) }, // 绑定默认高度