import{C as h,i as k,x as w,n as C}from"./index.0d411246.js";import{d as T,r as R,ao as V,al as c,k as a,j as F,a9 as o,o as H,E as M,G as i,M as t,u as A,A as B,an as E}from"./vue.3f733908.js";import"./elementPlus.0e5067e4.js";import"./echarts.72dc8373.js";const $=T({__name:"main",setup(L,{expose:u}){const _=E(()=>C(()=>import("./parent.4d9f729d.js"),["assets/parent.4d9f729d.js","assets/index.0d411246.js","assets/vue.3f733908.js","assets/elementPlus.0e5067e4.js","assets/echarts.72dc8373.js","assets/index.1be93128.css"])),s=R(),m=V(),p=h(),f=k(),{themeConfig:e}=c(f),{isTagsViewCurrenFull:d}=c(p);a(()=>e.value.isFooter&&!m.meta.isIframe);const y=a(()=>e.value.isFixedHeader),v=a(()=>e.value.isFixedHeader?".layout-backtop-header-fixed .el-scrollbar__wrap":".layout-backtop .el-scrollbar__wrap"),r=a(()=>{if(d.value)return"0px";const{isTagsview:l,layout:n}=e.value;return l&&n!=="classic"?"85px":"51px"});return F(()=>{w.done(600)}),u({layoutMainScrollbarRef:s}),(l,n)=>{const x=o("el-scrollbar"),g=o("el-backtop"),b=o("el-main");return H(),M(b,{class:"layout-main",style:B(y.value?`height: calc(100% - ${r.value})`:`minHeight: calc(100% - ${r.value})`)},{default:i(()=>[t(x,{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(_))]),_:1},512),t(g,{target:v.value},null,8,["target"])]),_:1},8,["style"])}}});export{$ as default};
