From 82db330ff69ffbc36625bc4d66c4a1f7cd8eb174 Mon Sep 17 00:00:00 2001 From: BoBoooooo <17746714@qq.com> Date: Fri, 5 Feb 2021 15:25:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E5=8D=A1=E9=A1=BF=E6=97=B6=E5=9B=BA=E5=AE=9A=E5=88=97=E9=94=99?= =?UTF-8?q?=E4=BD=8D=E9=97=AE=E9=A2=98=20@0.8.7-4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/component/pro-table/src/ProTable.vue | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 58e44db..94bb19d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "element-pro-crud", - "version": "0.8.7-3", + "version": "0.8.7-4", "author": "BoBo", "main": "lib/ProCrud.umd.min.js", "files": [ diff --git a/src/component/pro-table/src/ProTable.vue b/src/component/pro-table/src/ProTable.vue index 2aa71e9..29e8871 100644 --- a/src/component/pro-table/src/ProTable.vue +++ b/src/component/pro-table/src/ProTable.vue @@ -371,13 +371,12 @@ export default defineComponent({ if (tableRefs.value) { tableRefs.value.clearSelection(); } - nextTick(() => { - // 初始化表格高度 - setTimeout(() => { - setMaxHeight(); - }, 0); - }); - + setTimeout(() => { + setMaxHeight(); + nextTick(() => { + tableRefs.value!.doLayout(); + }); + }, 300); emit('done', { total: count, data,