"use strict";(self.webpackChunkwu_vue_zone_ecology=self.webpackChunkwu_vue_zone_ecology||[]).push([[159],{99159:function(e,a,l){l.r(a),l.d(a,{default:function(){return v}});l(44114);var o=l(20641),n=l(50953),r=l(26918),t=l(75220),u=l(57894),d=l(48548);const b={class:"ve_nav_bar"},s={style:{position:"absolute",right:"40px",top:"80px"}},c={class:"ve_nav_dropdown"};var p={__name:"NavigateMenuBar",setup(e){const a=(0,t.rd)(),l=(0,o.EW)({get:()=>r.A.getters.currentBar,set:e=>r.A.dispatch(`tabbar/${u.FZ}`,e)}),p=(0,n.KR)({barCode:"Home",barName:"首页"}),v=(0,o.EW)({get:()=>r.A.getters.barList}),m=e=>{r.A.dispatch(`tabbar/${u.aW}`,e.barCode),e.barCode===l.value.barCode&&(r.A.dispatch(`tabbar/${u.FZ}`,p.value),a.push({name:p.value.barCode}))},_=()=>{console.log("closeOtherBar"),v.value.forEach((e=>{e.barCode!==l.value.barCode&&r.A.dispatch(`tabbar/${u.aW}`,e.barCode)}))},i=e=>{a.push({name:e.paneName.barCode}),r.A.dispatch(`tabbar/${u.FZ}`,e.paneName)};return(0,o.sV)((async()=>{})),(e,a)=>{const r=(0,o.g2)("el-tab-pane"),t=(0,o.g2)("el-tabs"),u=(0,o.g2)("el-icon"),C=(0,o.g2)("el-dropdown-item"),g=(0,o.g2)("el-dropdown-menu"),k=(0,o.g2)("el-dropdown");return(0,o.uX)(),(0,o.CE)("div",b,[(0,o.bF)(t,{modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e),type:"card",closable:"",onTabRemove:m,onTabClick:i},{default:(0,o.k6)((()=>[((0,o.uX)(),(0,o.Wv)(r,{key:p.value.barCode,label:p.value.barName,name:p.value,closable:"false"},null,8,["label","name"])),((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(v.value,(e=>((0,o.uX)(),(0,o.Wv)(r,{key:e.barCode,label:e.barName,name:e},null,8,["label","name"])))),128))])),_:1},8,["modelValue"]),(0,o.Lk)("div",s,[(0,o.bF)(k,{onCommand:_},{dropdown:(0,o.k6)((()=>[(0,o.bF)(g,null,{default:(0,o.k6)((()=>[(0,o.bF)(C,{onCommand:_},{default:(0,o.k6)((()=>[(0,o.eW)(" 关闭其他 ")])),_:1})])),_:1})])),default:(0,o.k6)((()=>[(0,o.Lk)("span",c,[(0,o.bF)(u,null,{default:(0,o.k6)((()=>[(0,o.bF)((0,n.R1)(d.ArrowDownBold))])),_:1})])])),_:1})])])}}};var v=(0,l(64621).A)(p,[["__scopeId","data-v-3ca12f2e"]])}}]);