(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e552eca"],{"573e":function(t,e,n){"use strict";n.r(e);var i=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,i){return n("div",{key:i,staticClass:"block",class:{active:e.active},attrs:{"data-index":i},on:{mousedown:function(n){t.onTap(n,e)}}},[n("span",[t._v(t._s(e.label))]),i>0?n("i",{staticClass:"el-icon-close",class:{active:i>0},on:{mousedown:function(e){return e.stopPropagation(),t.onDel(i)}}}):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)},s=[],r=(n("3546"),n("0e8d"),n("8759"),n("7ba0"),n("fdc1"),n("a94a"),n("639b"),n("4f5b"),n("b287"),n("9d37")),o=n("5880");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){Object(r["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={data:function(){return{menu:{visible:!1,current:{},style:{left:0,top:0}},isHit:!1,page:1}},computed: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")||[],i=0,s=0;s<n.length;s++)i+=n[s].clientWidth;e-i>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: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:"/")}}})},l=u,p=(n("aa5b"),n("5511")),f=Object(p["a"])(l,i,s,!1,null,"539e669d",null);e["default"]=f.exports},6943:function(t,e,n){},aa5b:function(t,e,n){"use strict";var i=n("6943"),s=n.n(i);s.a}}]);