From 792e0709fc4b992692a760d5ee326f362950d425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Thu, 4 May 2023 09:51:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20table=20=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=B8=AD=E5=8C=85=E5=90=AB=E8=BF=87=E5=A4=A7?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=97=B6=E7=9A=84=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/modules/table.js b/src/modules/table.js index 9b6b2dc3..1c8e42f1 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -1881,20 +1881,21 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ } break; case 'LAYTABLE_PRINT': // 打印 - var printWin = window.open('about:blank', '_blank') - ,style = [''].join('') - ,html = $(that.layHeader.html()); //输出表头 + var printWin = window.open('about:blank', '_blank'); + var style = [''].join('') + var html = $(that.layHeader.html()); // 输出表头 - html.append(that.layMain.find('table').html()); //输出表体 - html.append(that.layTotal.find('table').html()) //输出合计行 + html.append(that.layMain.find('table').html()); // 输出表体 + html.append(that.layTotal.find('table').html()) // 输出合计行 - html.find('th.layui-table-patch').remove(); //移除补丁 + html.find('th.layui-table-patch').remove(); // 移除补丁 // 移除表头特殊列 html.find('thead>tr>th.'+ ELEM_COL_SPECIAL).filter(function(i, thElem){ return !$(thElem).children('.'+ ELEM_GROUP).length; // 父级表头除外