From 38fb69bf5d2f67e8d9d779ade5d52f525f549405 Mon Sep 17 00:00:00 2001 From: sunxiaobin89 <285584806@qq.com> Date: Thu, 11 May 2023 14:05:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20table=20=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E6=A0=8F=E6=88=96=E8=80=85=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=A0=8F=E6=97=B6=E5=87=BA=E7=8E=B0=E5=BA=95=E9=83=A8=E5=8F=8C?= =?UTF-8?q?=E8=BE=B9=E6=A1=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/table.js b/src/modules/table.js index 1c8e42f1..47223912 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -1675,7 +1675,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ if(!height) return; //减去列头区域的高度 - bodyHeight = parseFloat(height) - (that.layHeader.outerHeight() || 38) - 1; //此处的数字常量是为了防止容器处在隐藏区域无法获得高度的问题,暂时只对默认尺寸的表格做支持。 + bodyHeight = parseFloat(height) - (that.layHeader.outerHeight() || 39) - 1; //此处的数字常量是为了防止容器处在隐藏区域无法获得高度的问题,暂时只对默认尺寸的表格做支持。 //减去工具栏的高度 if(options.toolbar){ @@ -1684,12 +1684,12 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ //减去统计栏的高度 if(options.totalRow){ - bodyHeight -= (that.layTotal.outerHeight() || 40); + bodyHeight -= (that.layTotal.outerHeight() || 40) - 1; // 减掉一个共用的 border width } //减去分页栏的高度 if(options.page || options.pagebar){ - bodyHeight -= (that.layPage.outerHeight() || 43); + bodyHeight -= (that.layPage.outerHeight() || 43) - 1; } if (options.maxHeight) {