(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-50dcf6b3"],{"5a40":function(e,t,n){},8236: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("cl-crud",{on:{load:e.onLoad},scopedSlots:e._u([{key:"slot-content",fn:function(t){var a=t.scope;return e._l(e.tab.list,(function(t,o){return n("div",{key:o,staticClass:"editor"},[e.tab.index===o?[n("el-button",{staticClass:"change-btn",attrs:{size:"mini"},on:{click:function(n){return e.changeTab(t.to)}}},[e._v(e._s(t.label))]),n(t.component,{tag:"component",attrs:{height:"300px"},model:{value:a.data,callback:function(t){e.$set(a,"data",t)},expression:"scope.data"}})]:e._e()],2)}))}}])})},o=[],l={data:function(){return{crud:null,tab:{index:null,list:[{label:"切换富文本编辑器",to:1,component:"cl-code"},{label:"切换代码编辑器",to:0,component:"cl-editor-quill"}]}}},methods:{onLoad:function(e){var t=this,n=e.ctx,a=e.app;this.crud=a,n.service(this.$service.system.param).set("upsert",{props:{width:"1000px"},items:[{prop:"name",label:"名称",span:12,component:{name:"el-input",attrs:{placeholder:"请输入名称"}},rules:{required:!0,message:"名称不能为空"}},{prop:"key",label:"Key",span:12,component:{name:"el-input",attrs:{placeholder:"请输入Key"}},rules:{required:!0,message:"Key不能为空"}},{prop:"data",label:"数据",component:{name:"slot-content"}},{prop:"remark",label:"备注",component:{name:"el-input",props:{type:"textarea"},attrs:{placeholder:"请输入备注",rows:3}}}]}).set("table",{columns:[{type:"selection",align:"center",width:60},{label:"名称",prop:"name",align:"center"},{label:"Key",prop:"key",align:"center"},{label:"数据",prop:"data",align:"center","show-overflow-tooltip":!0},{label:"备注",prop:"remark",align:"center"}]}).set("layout",[["refresh-btn","add-btn","multi-delete-btn","flex1","search-key"],["data-table"],["flex1","pagination"]]).on("open",(function(e,n){t.tab.index=e?/<*>/g.test(n.data)?1:0:1})).done(),a.refresh()},changeTab:function(e){var t=this;this.$confirm("切换编辑器会清空输入内容，是否继续？","提示",{type:"warning"}).then((function(){t.tab.index=e,t.crud.setForm("data","")})).catch((function(){}))}}},r=l,c=(n("f4a4"),n("5511")),s=Object(c["a"])(r,a,o,!1,null,"24f21bb7",null);t["default"]=s.exports},f4a4:function(e,t,n){"use strict";var a=n("5a40"),o=n.n(a);o.a}}]);