(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["p1"],{"6a7d":function(t,e,o){"use strict";o("80af")},"80af":function(t,e,o){var a=o("da83");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=o("499e").default;n("3a730dcf",a,!0,{sourceMap:!1,shadowMode:!1})},da83:function(t,e,o){e=t.exports=o("2350")(!1),e.push([t.i,".hideArea[data-v-0a47f242]{transform:translateX(100vw);opacity:0}.preview[data-v-0a47f242]{width:1000px;height:1000px;display:flex;color:#fff;justify-content:center;align-items:center;font-size:700px}",""])},e5c6:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"area",on:{click:t.download}},[o("Button",{attrs:{type:"primary"}},[t._v("点击下载")]),t.show?o("div",{staticClass:"hideArea"},[o("div",{ref:"preview",staticClass:"preview",style:{backgroundColor:t.color||"#273343"}},[o("Icon",{attrs:{name:t.icon}})],1)]):t._e()],1)},n=[],s=o("1da1"),c=o("a020"),i={components:{Button:c["Button"],Icon:c["Icon"]},props:["icon","color"],data(){return{show:!1}},mounted(){},methods:{download(){var t=this;return Object(s["a"])((function*(){t.show=!0,yield horizon.load.js("https://public.sumor.com/html2canvas.min.js");const e=yield window.html2canvas(t.$refs.preview),o=e.toDataURL(),a=document.createElement("a");a.download="img.png",a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),t.show=!1}))()}}},r=i,d=(o("6a7d"),o("2877")),l=Object(d["a"])(r,a,n,!1,null,"0a47f242",null);e["default"]=l.exports}}]);