mirror of
https://gitee.com/layui/layui.git
synced 2025-04-05 17:38:02 +08:00
加强 table ignoreExport
的配置支持,允许指定不排除哪些字段
This commit is contained in:
parent
94a951d392
commit
9f9c2a72eb
@ -84,6 +84,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||
var options = this.config || {};
|
||||
var item3 = obj.item3; // 表头数据
|
||||
var content = obj.content; // 原始内容
|
||||
if (item3.type === 'numbers') content = obj.tplData[table.config.numbersName];
|
||||
|
||||
// 是否编码 HTML
|
||||
var escaped = 'escape' in item3 ? item3.escape : options.escape;
|
||||
@ -2741,7 +2742,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||
});
|
||||
} else {
|
||||
table.eachCols(id, function(i3, item3){
|
||||
if(item3.field && item3.type == 'normal'){
|
||||
if(item3.ignoreExport === false || item3.field && item3.type == 'normal'){
|
||||
// 不导出隐藏列
|
||||
if(item3.hide || item3.ignoreExport){
|
||||
if(i1 == 0) fieldsIsHide[item3.field] = true; // 记录隐藏列
|
||||
|
Loading…
Reference in New Issue
Block a user