修复 table 当 `page` 未开启且 `totalRow` 开启时,页脚出现双底线的问题

pull/1253/head
贤心 2023-05-14 11:42:19 +08:00
parent 758b795068
commit 4e120efe29
1 changed files with 7 additions and 5 deletions

View File

@ -1674,8 +1674,10 @@ 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() || 38) - (
options.page ? 1 : 0
);
// 减去工具栏的高度
if(options.toolbar){