mirror of https://github.com/layui/layui
修改 table 的表头属性名 `doNotExport → ignoreExport`
parent
7d2cbbd1cf
commit
50e077537e
|
@ -1674,8 +1674,8 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||||
|
|
||||||
if(!height) return;
|
if(!height) return;
|
||||||
|
|
||||||
// 减去列头区域的高度
|
// 减去列头区域的高度 --- 此处的数字常量是为了防止容器处在隐藏区域无法获得高度的问题,暂时只对默认尺寸表格做支持
|
||||||
bodyHeight = parseFloat(height) - (that.layHeader.outerHeight() || 39) - 1; //此处的数字常量是为了防止容器处在隐藏区域无法获得高度的问题,暂时只对默认尺寸的表格做支持。
|
bodyHeight = parseFloat(height) - (that.layHeader.outerHeight() || 39) - 1;
|
||||||
|
|
||||||
// 减去工具栏的高度
|
// 减去工具栏的高度
|
||||||
if(options.toolbar){
|
if(options.toolbar){
|
||||||
|
@ -2703,7 +2703,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||||
table.eachCols(id, function(i3, item3){
|
table.eachCols(id, function(i3, item3){
|
||||||
if(item3.field && item3.type == 'normal'){
|
if(item3.field && item3.type == 'normal'){
|
||||||
// 不导出隐藏列
|
// 不导出隐藏列
|
||||||
if(item3.hide || item3.doNotExport){
|
if(item3.hide || item3.ignoreExport){
|
||||||
if(i1 == 0) fieldsIsHide[item3.field] = true; // 记录隐藏列
|
if(i1 == 0) fieldsIsHide[item3.field] = true; // 记录隐藏列
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue