Merge pull request #1264 from Sight-wcg/patch/table-print

优化 table 打印
pull/1267/head
贤心 2 years ago committed by GitHub
commit 494fa7035a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1916,8 +1916,14 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
printWin.document.write(style + html.prop('outerHTML'));
printWin.document.close();
printWin.print();
printWin.close();
if(layui.device('edg').edg){
printWin.onafterprint = printWin.close;
printWin.print();
}else{
printWin.print();
printWin.close();
}
break;
}

Loading…
Cancel
Save