(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1f8a1561"],{"247d":function(t,e,n){},"573e":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"scope-process"},[n("cl-scroll",t._l(t.processList,(function(e,s){return n("div",{key:s,staticClass:"block",class:{active:e.active},attrs:{"data-index":s},on:{mousedown:function(n){t.onTap(n,e)}}},[n("span",[t._v(t._s(e.label))]),s>0?n("i",{staticClass:"el-icon-close",class:{active:s>0},on:{mousedown:function(e){return e.stopPropagation(),t.onDel(s)}}}):t._e()])})),0),n("ul",{directives:[{name:"show",rawName:"v-show",value:t.menu.visible,expression:"menu.visible"}],staticClass:"context-menu",style:t.menu.style},[t.isHit?n("li",{on:{click:function(e){return t.onClose("current")}}},[t._v("关闭当前")]):t._e(),n("li",{on:{click:function(e){return t.onClose("other")}}},[t._v("关闭其他")]),n("li",{on:{click:function(e){return t.onClose("all")}}},[t._v("关闭所有")])])],1)},i=[],c=n("6abc"),o=(n("47b8"),n("e3b5"),n("4cd5"),n("5880")),r={data:function(){return{menu:{visible:!1,current:{},style:{left:0,top:0}},isHit:!1,page:1}},computed:Object(c["a"])({},Object(o["mapGetters"])(["processList"])),watch:{processList:function(){var t=this,e=this.$el.clientWidth;this.$nextTick((function(){for(var n=t.$el.querySelectorAll(".block")||[],s=0,i=0;i<n.length;i++)s+=n[i].clientWidth;e-s>1e3&&(t.page+=1)}))}},mounted:function(){var t=this;this.$el.oncontextmenu=function(){event.returnValue=!1},document.body.addEventListener("click",(function(){t.menu.visible&&(t.menu.visible=!1)}))},methods:Object(c["a"])(Object(c["a"])({},Object(o["mapMutations"])(["ADD_PROCESS","DEL_PROCESS","SET_PROCESS"])),{},{onTap:function(t,e){this.isHit=e.active,0==t.button?this.$router.push(e.value):this.menu={current:e,visible:!0,style:{left:t.layerX+"px",top:t.layerY+"px"}}},onDel:function(t){this.DEL_PROCESS(t),this.toPath()},onClose:function(t){var e=this.menu.current;switch(t){case"current":this.onDel(this.processList.findIndex((function(t){return t.value==e.value})));break;case"other":this.SET_PROCESS(this.processList.filter((function(t){return t.value==e.value||"/"==t.value})));break;case"all":this.SET_PROCESS(this.processList.filter((function(t){return"/"==t.value})));break}this.toPath()},toPath:function(){var t=this.processList.find((function(t){return t.active}));if(!t){var e=this.processList[this.processList.length-1];this.$router.push(e?e.value:"/")}}})},u=r,a=(n("b99e"),n("5d22")),l=Object(a["a"])(u,s,i,!1,null,"64c63b5a",null);e["default"]=l.exports},b99e:function(t,e,n){"use strict";n("247d")}}]);