(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8298e312","chunk-13d1af13","chunk-1d52cd9c"],{"4e96":function(e,t,n){"use strict";n.r(t);n("7364");var a=n("b410");a["default"].install=function(e){e.component(a["default"].name,a["default"])},t["default"]=a["default"]},7364:function(e,t,n){var a=n("ddf7").f,r=Function.prototype,c=/^\s*function ([^ (]*)/,o="name";o in r||n("dad2")&&a(r,o,{configurable:!0,get:function(){try{return(""+this).match(c)[1]}catch(e){return""}}})},"872b":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",{staticClass:"demo-title"},[e._v("基础用法")]),n("PreLoadSource")],1)},r=[],c=n("6e6d"),o=n("4e96");c["a"].use(o["default"]);var s={data:function(){return{}},methods:{}},u=s,i=n("6691"),d=Object(i["a"])(u,a,r,!1,null,null,null);t["default"]=d.exports},b410:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"preload",staticClass:"preload-source"},[n("img",{attrs:{alt:"",name:e.pre+"IMG_ERR"}})])},r=[],c=(n("7364"),n("f763"),{name:"PreLoadSource",data:function(){return{pre:"PRE_"}},mounted:function(){var e=this;this.$nextTick(function(){var t;e.$refs["preload"].childNodes.forEach(function(n){t=new Image,t.src=n.src,t.onload=function(){sessionStorage.setItem(n.name,e.getBase64Image(t))}})})},methods:{getBase64Image:function(e){var t=document.createElement("canvas");t.width=e.width,t.height=e.height;var n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);var a=e.src.substring(e.src.lastIndexOf(".")+1).toLowerCase(),r=t.toDataURL("image/"+a);return r}}}),o=c,s=n("6691"),u=Object(s["a"])(o,a,r,!1,null,null,null);t["default"]=u.exports}}]);
//# sourceMappingURL=chunk-8298e312.ac204023.js.map