(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-384eca4c"],{"1c6d":function(t,e,n){"use strict";n("366c")},"366c":function(t,e,n){},"7f31":function(t,e,n){"use strict";n.r(e);var c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.coms.length>0?n("div",{staticClass:"com-list"},[n("div",{staticClass:"com-list-title"},[t._v("模块管理")]),n("div",{staticClass:"com-items"},[n("draggable",{staticStyle:{width:"100%"},attrs:{options:{animation:200}},on:{update:t.datadragEnd},model:{value:t.coms,callback:function(e){t.coms=e},expression:"coms"}},[t._l(t.coms,(function(e,c){return[n("div",{key:c,staticClass:"com-item",attrs:{draggable:""}},[n("div",{staticClass:"icon"},[n("svg-icon",{attrs:{"icon-class":"dashBoard1"}})],1),n("div",{staticClass:"name",on:{click:function(e){return t.onSetActive(c)}}},[t._v(t._s(e.name))]),"document"!==t.type?n("div",{staticClass:"remove",on:{click:function(e){return t.onRemove(c)}}},[n("svg-icon",{staticStyle:{cursor:"pointer"},attrs:{"icon-class":"delete"}})],1):t._e()])]}))],2)],1)]):t._e()},s=[],i=n("c7eb"),a=n("1da1"),o=n("b76a"),r=n.n(o),u={name:"comList",emits:["onRemove","onRebuild","onSetActive"],components:{draggable:r.a},props:{coms:{type:Array,default:[]}},data:function(){return{type:""}},mounted:function(){this.type=this.$route.query.type},methods:{datadragEnd:function(t){var e=this;return Object(a["a"])(Object(i["a"])().mark((function n(){var c;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.preventDefault(),c=e.coms,e.$emit("onRebuild",c);case 3:case"end":return n.stop()}}),n)})))()},onSetActive:function(t){this.$emit("onSetActive",t)},onRemove:function(t){this.$emit("onRemove",t)}}},l=u,d=(n("1c6d"),n("2877")),m=Object(d["a"])(l,c,s,!1,null,null,null);e["default"]=m.exports}}]);