mirror of
https://gitee.com/layui/layui.git
synced 2025-04-05 17:38:02 +08:00
优化 table 打印
This commit is contained in:
parent
9714360050
commit
ab22072924
@ -1904,8 +1904,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…
Reference in New Issue
Block a user