(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["tinymce-example"],{1496:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"ty_newPath"}},[s("iframe",{ref:"previewPage",staticClass:"result-wrapper",staticStyle:{width:"100%",height:"100%"},attrs:{frameborder:"0",src:"preview.html"},on:{load:e.iframeLoad}})])},i=[],o=(s("99af"),s("ac1f"),s("5319"),s("c534")),r=s("f4a7"),n=s("42ea"),c=s("ed08"),h=s("b3ae"),f={data:function(){return{formData:void 0,generateConf:{fileName:void 0,type:"file"},activeTab:"html",htmlCode:"",jsCode:"",cssCode:"",scripts:[],links:[]}},computed:{resources:function(){return this.scripts.concat(this.links)}},watch:{},created:function(){this.getFromPage(2)},methods:{getFromPage:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t=parseInt(t);var s={id:t};this.$axios.get_echoPage(s).then((function(t){console.log("表单",t.data);var s=JSON.parse(t.data.descFile);e.formData=s,e.onOpen()})).catch((function(e){console.log(e)}))},onOpen:function(){var e=this,t=this.generateConf.type;this.htmlCode=Object(o["b"])(this.formData,t),this.jsCode=Object(r["a"])(this.formData,t,1),this.cssCode=Object(n["a"])(this.formData),Object(h["a"])((function(t){beautifier=t,e.htmlCode=beautifier.html(e.htmlCode,c["a"].html),e.jsCode=beautifier.js(e.jsCode,c["a"].js),e.cssCode=beautifier.css(e.cssCode,c["a"].html)}))},iframeLoad:function(){this.runCode()},runCode:function(){try{var e={type:"refreshFrame",data:{generateConf:this.generateConf,html:this.htmlCode,js:this.jsCode.replace(c["c"],""),css:this.cssCode,scripts:this.scripts,links:this.links}};this.$refs.previewPage.contentWindow.postMessage(e,location.origin)}catch(t){this.$message.error("js错误：".concat(t)),console.error(t)}}}},d=f,l=(s("f171"),s("2877")),u=Object(l["a"])(d,a,i,!1,null,"4cce116c",null);t["default"]=u.exports},"9b42":function(e,t,s){},f171:function(e,t,s){"use strict";s("9b42")}}]);