(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-059a8220"],{a849f:function(t,n,e){},b0a3:function(t,n,e){"use strict";e("a849f")},c5c0:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"ele-body"},[e("el-card",{attrs:{shadow:"never",header:"打印当前页面"}},[e("div",{staticStyle:{"margin-bottom":"15px"}},[t._v("支持IE浏览器打印预览")]),e("el-button",{on:{click:function(n){return t.print({})}}},[t._v("打印当前页面")]),e("el-button",{on:{click:function(n){return t.print({horizontal:!0})}}},[t._v("横屏打印")]),e("el-button",{on:{click:function(n){return t.print({blank:!0})}}},[t._v("新窗口打印")]),e("el-button",{on:{click:function(n){return t.print({hide:[".demo-hide-1"]})}}},[t._v("打印时隐藏指定内容")]),e("div",[e("span",{staticClass:"ele-text-danger ele-printer-hide"},[t._v("此段内容会在所有打印时自动隐藏,打印完自动复原。")]),e("span",{staticClass:"ele-text-primary demo-hide-1"},[t._v("此段内容在指定打印时才隐藏。")])])],1),e("el-card",{attrs:{shadow:"never",header:"打印任意内容"}},[e("el-button",{on:{click:function(n){return t.printHtml()}}},[t._v("打印任意内容")]),e("el-button",{on:{click:function(n){return t.printHtml(!0)}}},[t._v("新窗口打印")]),e("el-button",{on:{click:t.printAddHeader}},[t._v("设置页眉页脚")]),e("el-button",{on:{click:t.printImage}},[t._v("打印图片")])],1),e("el-card",{attrs:{shadow:"never",header:"分页打印"}},[e("el-button",{on:{click:function(n){return t.printPage()}}},[t._v("分页打印")]),e("el-button",{on:{click:function(n){return t.printPage(!0)}}},[t._v("新窗口分页打印")]),e("el-button",{on:{click:t.printPageAddHeader}},[t._v("分页打印设置页眉页脚")])],1),e("el-card",{attrs:{shadow:"never",header:"进阶示例"}},[e("el-button",{on:{click:t.printDataTable}},[t._v("打印数据表格")]),e("el-tooltip",{attrs:{content:"对于复杂的打印需求,可以后端生成pdf给前端打印",placement:"top"}},[e("el-button",{on:{click:t.printPdf}},[t._v("打印pdf")])],1),e("el-button",{on:{click:t.printQrCode}},[t._v("打印条码")]),e("el-button",{on:{click:t.printTable}},[t._v("打印自定义表格")])],1)],1)},o=[],r=(e("99af"),e("5319"),e("ac1f"),e("a15b"),e("d81d"),e("159b"),e("2b3d"),e("d3b7"),e("3ca3"),e("ddb0"),e("a434"),{print:function(t){var n=t.hide,e=t.horizontal,i=t.iePreview,o=void 0===i||i,r=t.blank,a=t.close,l=t.margin,d=t.title;void 0===a&&r&&!this.isIE()&&(a=!0),window.focus(),this.addCommonCss();var s=document.getElementById(this.pSetId);s&&s.parentNode.removeChild(s);var c="",p="";if(void 0!==e&&(c="size: ".concat(e?"landscape":"portrait",";")),(0===l||l)&&(p="margin: ".concat(l,";")),c||p){var h=document.createElement("style");h.id=this.pSetId,h.setAttribute("type","text/css"),h.setAttribute("media","print"),h.innerHTML="@page {".concat(c).concat(p,"}"),document.body.appendChild(h)}this.hideElem(n);var u,m=document.title;if(d&&(document.title=d),r){u=window.open("","_blank"),u.focus();var g=u.document;g.open();var f=a?"window.close();":"",v=""+document.getElementsByTagName("html")[0].outerHTML;if(v=v.replace(/