(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["p1"],{"129d":function(e,t,o){"use strict";o("a447")},"17e7":function(e,t,o){t=e.exports=o("2350")(!1),t.push([e.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}",""])},a447:function(e,t,o){var a=o("17e7");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=o("499e").default;n("a7e76b50",a,!0,{sourceMap:!1,shadowMode:!1})},e1c9:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"area",on:{click:e.download}},[o("Button",{attrs:{type:"primary"}},[e._v("点击下载")]),e.show?o("div",{staticClass:"hideArea"},[o("div",{ref:"preview",staticClass:"preview",style:{backgroundColor:e.color||"#273343"}},[o("Icon",{attrs:{name:e.icon}})],1)]):e._e()],1)},n=[],s=o("1da1"),i=o("3e22"),r={components:{Button:i["Button"],Icon:i["Icon"]},props:["icon","color"],data(){return{show:!1}},mounted(){},methods:{download(){var e=this;return Object(s["a"])((function*(){e.show=!0,yield horizon.load.js("https://public.sumor.com/html2canvas.min.js");const t=yield window.html2canvas(e.$refs.preview),o=t.toDataURL(),a=document.createElement("a");a.download="img.png",a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),e.show=!1}))()}}},c=r,d=(o("129d"),o("2877")),l=Object(d["a"])(c,a,n,!1,null,"0a47f242",null);t["default"]=l.exports}}]);