mirror of https://github.com/layui/layui
Merge branch '2.x' of github.com:layui/layui into 2.x
commit
3ffd0163de
|
@ -1625,7 +1625,13 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||||
html.append(that.layTotal.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('.layui-table-col-special').remove(); //移除特殊列
|
layui.each(html.find('thead>tr>th.layui-table-col-special'), function (thIndex, thElem) {
|
||||||
|
thElem = $(thElem);
|
||||||
|
if (!thElem.children('.laytable-cell-group').length) { // 表头特殊列中和并列不移除
|
||||||
|
thElem.remove();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
html.find('tbody>tr>td.layui-table-col-special').remove(); // 移除表体特殊列
|
||||||
|
|
||||||
printWin.document.write(style + html.prop('outerHTML'));
|
printWin.document.write(style + html.prop('outerHTML'));
|
||||||
printWin.document.close();
|
printWin.document.close();
|
||||||
|
|
Loading…
Reference in New Issue