(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4403f518"],{"1fb6":function(t,e,o){"use strict";o("e330")},"24f7":function(t,e,o){"use strict";o.r(e);var d=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("codemirror",{attrs:{scode:t.model.tablecode,id:t.getId,height:t.editorHeight},on:{onCodeChange:t.onCodeChange}}),o("div",{attrs:{slot:"top-right"},slot:"top-right"},[o("button",{staticClass:"btn purple",attrs:{type:"button"},on:{click:t.sure}},[t._v("确认")]),o("button",{staticClass:"btn default",attrs:{type:"button"},on:{click:function(e){return t.$modal.hide("modal")}}},[t._v("取消")])])],1)},a=[],n=(o("4160"),o("159b"),o("2ef0")),i=o.n(n),l=o("38ef"),c=o("c64e"),s=o.n(c),r={name:"tablesetup",props:{model:Object,pagemodel:Object},data:function(){return{myModel:i.a.cloneDeep(this.model),setupData:{tr:null},selectedData:null,mousedownStatus:!1,layerX:0,layerY:0,editorHeight:.7*window.screen.height,getId:"tableSetupBox".concat(s()())}},watch:{},computed:{table:function(){return{width:"".concat(this.myModel.width,"px"),height:"".concat(this.myModel.height,"px"),"font-size":"".concat(this.myModel.width*this.myModel.reFontScale,"px")}},drag:function(){return{width:"".concat(this.myModel.width,"px"),"text-align":"right"}},isDisabled:function(){return this.selectedData?"":"disabled"}},created:function(){},destroyed:function(){},mounted:function(){},methods:{onCodeChange:function(t){this.myModel.tablecode=t},sure:function(){var t="var code = ".concat(this.myModel.tablecode),e=eval;try{e(t),this.myModel.tableData=code,this.model.tableData=this.myModel.tableData,this.model.tablecode=this.myModel.tablecode,this.$modal.hide("modal")}catch(o){console.log("err: ",o)}},selectLine:function(t,e,o){},clearBorder:function(){this.myModel.tableData.tbody.forEach((function(t){t.style.border="1px solid #ddd",t.data.forEach((function(t){t.style.border="1px solid #ddd"}))})),this.myModel.tableData.thead.data.forEach((function(t){t.style.border="1px solid #ddd"}))},selectUnit:function(t,e,o,d,a){this.clearBorder(),t.style.border="2px solid green",this.selectedData={},this.selectedData.unit=t,this.selectedData.line=o,this.selectedData.tbody=a,this.selectedData.tdIndex=e,this.selectedData.trIndex=d}},components:{codemirror:l["a"]}},h=r,u=(o("1fb6"),o("2877")),b=Object(u["a"])(h,d,a,!1,null,"d456d60a",null);e["default"]=b.exports},e330:function(t,e,o){}}]);