import{d as b,bh as B,a as x,H as d,o as s,c as t,q as e,I as C,J as k,e as i,K as I,z as S,m as n,L as y,p as u,G as w}from"./index-XuO881sr.js";import{u as D}from"./house-CxmtNIEi.js";import"./index-B_ImzkRi.js";import"./index-BMymgPp9.js";const L={class:"BuildingBox"},N=["onClick"],j={class:"buildingname"},z={class:"buildactions flex align-center justify-around"},E=b({__name:"building",setup(H){const l=D(),{switchBuilding:_}=l,{currentBuildingInfoList:a,currentBuildingInfo:p}=B(l),g=x();console.log(a);const f=()=>{g.push({path:"/house/addbuilding"})};return(R,c)=>{const m=d("Setting"),r=y,h=d("Delete");return s(),t("div",L,[e("div",{class:"buildingheader flex align-center justify-between"},[c[0]||(c[0]=e("div",null,"楼栋",-1)),e("div",null,[e("span",{class:"pointer",onClick:f},"+增加楼栋")])]),e("ul",null,[(s(!0),t(C,null,k(i(a),(o,v)=>(s(),t("li",{class:I({active:o.id===i(p).id}),key:v,onClick:V=>i(_)(o.id)},[e("div",j,S(o.buildingName??"测试数据"),1),e("div",z,[n(r,{class:"pointer hover-color-blue"},{default:u(()=>[n(m)]),_:1}),n(r,{class:"pointer hover-color-red"},{default:u(()=>[n(h)]),_:1})])],10,N))),128))])])}}}),J=w(E,[["__scopeId","data-v-6117faa3"]]);export{J as default};
