mirror of https://github.com/layui/layui
优化 table 底部边框问题
parent
a4a6a57dc2
commit
77bc677716
|
@ -1106,7 +1106,7 @@ input.layui-input.layui-table-edit{height: 100%;}
|
|||
select.layui-table-edit{padding: 0 0 0 10px; border-color: #d2d2d2;}
|
||||
.layui-table-view .layui-form-switch,
|
||||
.layui-table-view .layui-form-checkbox,
|
||||
.layui-table-view .layui-form-radio{top: 0; margin: 0; box-sizing: content-box;}
|
||||
.layui-table-view .layui-form-radio{top: 0; margin: 0;}
|
||||
.layui-table-view .layui-form-checkbox{top: -1px; height: 26px; line-height: 26px;}
|
||||
.layui-table-view .layui-form-checkbox i{height: 26px;}
|
||||
|
||||
|
|
|
@ -1674,22 +1674,22 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
|||
|
||||
if(!height) return;
|
||||
|
||||
// 减去列头区域的高度 --- 此处的数字常量是为了防止容器处在隐藏区域无法获得高度的问题,暂时只对默认尺寸表格做支持
|
||||
bodyHeight = parseFloat(height) - (that.layHeader.outerHeight() || 39) - 1;
|
||||
// 减去列头区域的高度 --- 此处的数字常量是为了防止容器处在隐藏区域无法获得高度的问题,只对默认尺寸表格做支持
|
||||
bodyHeight = parseFloat(height) - (that.layHeader.outerHeight() || 39)
|
||||
|
||||
// 减去工具栏的高度
|
||||
if(options.toolbar){
|
||||
bodyHeight -= (that.layTool.outerHeight() || 50);
|
||||
bodyHeight -= (that.layTool.outerHeight() || 51);
|
||||
}
|
||||
|
||||
// 减去统计栏的高度
|
||||
if(options.totalRow){
|
||||
bodyHeight -= (that.layTotal.outerHeight() || 40) - 1; // 减掉一个共用的 border width
|
||||
bodyHeight -= (that.layTotal.outerHeight() || 40);
|
||||
}
|
||||
|
||||
// 减去分页栏的高度
|
||||
if(options.page || options.pagebar){
|
||||
bodyHeight -= (that.layPage.outerHeight() || 43) - 1;
|
||||
bodyHeight -= (that.layPage.outerHeight() || 43);
|
||||
}
|
||||
|
||||
if (options.maxHeight) {
|
||||
|
|
Loading…
Reference in New Issue