import{C as k,i as w,x as C,n as T}from"./index.ae7ce77b.js";import{d as u,r as R,ao as M,al as c,k as a,j as V,a9 as o,o as F,E as H,G as i,M as t,u as A,A as B,an as E}from"./vue.6daa721c.js";import"./elementPlus.346c766a.js";import"./echarts.72dc8373.js";const L=u({name:"layoutMain"}),j=u({...L,setup(P,{expose:_}){const p=E(()=>T(()=>import("./parent.569fa3ff.js"),["assets/parent.569fa3ff.js","assets/index.ae7ce77b.js","assets/vue.6daa721c.js","assets/elementPlus.346c766a.js","assets/echarts.72dc8373.js","assets/index.a2a4e7ac.css"])),s=R(),m=M(),f=k(),d=w(),{themeConfig:e}=c(d),{isTagsViewCurrenFull:y}=c(f);a(()=>e.value.isFooter&&!m.meta.isIframe);const v=a(()=>e.value.isFixedHeader),x=a(()=>e.value.isFixedHeader?".layout-backtop-header-fixed .el-scrollbar__wrap":".layout-backtop .el-scrollbar__wrap"),l=a(()=>{if(y.value)return"0px";const{isTagsview:r,layout:n}=e.value;return r&&n!=="classic"?"85px":"51px"});return V(()=>{C.done(600)}),_({layoutMainScrollbarRef:s}),(r,n)=>{const g=o("el-scrollbar"),b=o("el-backtop"),h=o("el-main");return F(),H(h,{class:"layout-main",style:B(v.value?`height: calc(100% - ${l.value})`:`minHeight: calc(100% - ${l.value})`)},{default:i(()=>[t(g,{ref_key:"layoutMainScrollbarRef",ref:s,class:"layout-main-scroll layout-backtop-header-fixed","wrap-class":"layout-main-scroll","view-class":"layout-main-scroll"},{default:i(()=>[t(A(p))]),_:1},512),t(b,{target:x.value},null,8,["target"])]),_:1},8,["style"])}}});export{j as default};
