mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2025-07-02 00:59:23 +00:00
2 lines
2.9 KiB
JavaScript
2 lines
2.9 KiB
JavaScript
import{g as v,p,r as S,a as P,u as w,b as I,c as F,d as z,s as R,e as D,f as m,h as T,i as E,t as d,w as L,j as k,k as n,l as M,m as N,n as b,o as A,q as H,v as Z,x as y,y as G,_ as j,z as q,A as C,B as h,C as _,D as J,E as u,F as K,G as O,V as U,H as $,I as Q,J as W,K as X,L as Y,M as ee,N as te}from"./index-ByVcHmHP.js";const ae=p({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...G(),...y(),...Z(),...H(),...A(),...b({tag:"footer"}),...N()},"VFooter"),se=v()({name:"VFooter",props:ae(),setup(e,l){let{slots:t}=l;const o=S(),{themeClasses:s}=P(e),{backgroundColorClasses:a,backgroundColorStyles:r}=w(()=>e.color),{borderClasses:c}=I(e),{elevationClasses:x}=F(e),{roundedClasses:V}=z(e),f=R(32),{resizeRef:B}=D(i=>{i.length&&(f.value=i[0].target.clientHeight)}),g=m(()=>e.height==="auto"?f.value:parseInt(e.height,10));return T(()=>e.app,()=>{const i=E({id:e.name,order:m(()=>parseInt(e.order,10)),position:d(()=>"bottom"),layoutSize:g,elementSize:m(()=>e.height==="auto"?void 0:g.value),active:d(()=>e.app),absolute:d(()=>e.absolute)});L(()=>{o.value=i.layoutItemStyles.value})}),k(()=>n(e.tag,{ref:B,class:["v-footer",s.value,a.value,c.value,x.value,V.value,e.class],style:[r.value,e.app?o.value:{height:M(e.height)},e.style]},t)),{}}}),oe=["href","title"],ne={__name:"AppFooter",setup(e){const{mobile:l}=q(),t=[{title:"Classworks",icon:"mdi-earth",href:"https://cs.houlangs.com"},{title:"ZeroCat",icon:"mdi-xml",href:"https://zerocat.houlangs.com"},{title:"GitHub",icon:"mdi-github",href:"https://github.com/ZeroCatDev/Classworks"}];return(o,s)=>(h(),C(se,{height:"40",app:""},{default:_(()=>[(h(),J(K,null,O(t,a=>u("a",{key:a.title,href:a.href,title:a.title,class:"d-inline-block mx-2 social-link",rel:"noopener noreferrer",target:"_blank"},[n(U,{icon:a.icon,size:a.icon==="mdi-earth"?24:16},null,8,["icon","size"])],8,oe)),64)),s[0]||(s[0]=u("div",{class:"text-caption text-disabled",style:{position:"absolute",right:"16px"}},[u("a",{class:"text-decoration-none on-surface",href:"https://github.com/ZeroCatDev/Classworks",rel:"noopener noreferrer",target:"_blank"}," Classworks "),$(),u("a",{class:"text-decoration-none on-surface",href:"https://beian.miit.gov.cn",rel:"noopener noreferrer",target:"_blank"}," 浙ICP备2024068645号 ")],-1))]),_:1,__:[0]}))}},le=j(ne,[["__scopeId","data-v-4c8e3c20"]]),re=p({scrollable:Boolean,...y(),...Y(),...b({tag:"main"})},"VMain"),ce=v()({name:"VMain",props:re(),setup(e,l){let{slots:t}=l;const{dimensionStyles:o}=Q(e),{mainStyles:s}=W(),{ssrBootStyles:a}=X();return k(()=>n(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[s.value,a.value,o.value,e.style]},{default:()=>{var r,c;return[e.scrollable?n("div",{class:"v-main__scroller"},[(r=t.default)==null?void 0:r.call(t)]):(c=t.default)==null?void 0:c.call(t)]}})),{}}}),ue={__name:"default",setup(e){return(l,t)=>{const o=ee("router-view"),s=le;return h(),C(te,null,{default:_(()=>[n(ce,null,{default:_(()=>[n(o)]),_:1}),n(s)]),_:1})}}};export{ue as default};
|