From a648b1428dd762c0dc8b4b0910fb6bf9216e7e82 Mon Sep 17 00:00:00 2001 From: sunxiaobin89 <285584806@qq.com> Date: Thu, 11 May 2023 14:11:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20table=20=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=B7=BB=E5=8A=A0=20`doNotExport`=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=9C=A8=E5=AF=BC=E5=87=BA=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=E6=8E=92=E9=99=A4=E9=83=A8=E5=88=86=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/table.js b/src/modules/table.js index 47223912..c1172c32 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -2214,7 +2214,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ }).on('contextmenu', 'tr', function(e){ //菜单 if (!options.defaultContextmenu) e.preventDefault(); setRowEvent.call(this, 'rowContextmenu'); - });; + }); // 创建行单击、双击、菜单事件 var setRowEvent = function(eventType){ @@ -2672,7 +2672,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ table.eachCols(id, function(i3, item3){ if(item3.field && item3.type == 'normal'){ // 不导出隐藏列 - if(item3.hide){ + if(item3.hide || item3.doNotExport){ if(i1 == 0) fieldsIsHide[item3.field] = true; // 记录隐藏列 return; }