1 |
- import{D as C,G as F,S}from"./siteSetting--X_-_MSh.js";import{k as L,f as g,B as h,b as y,_}from"./entry/index-BFpON5wd-1719886843165.js";import{d as w,S as R,f as $,c as b,u as a,a7 as m,_ as k,a8 as v,a9 as I,a0 as n,a1 as c,k as U,a2 as p,ab as B,a3 as D,a4 as G}from"./vue-B3Yl1XMW.js";import{a as H}from"./useContentViewHeight-C48I8HSB.js";import{L as T,bO as W}from"./antd-V2f1Ijkg.js";import"./useWindowSizeFn-IiF7s4QS.js";const N=w({name:"LayoutFooter",components:{Footer:T.Footer,GithubFilled:W},setup(){const{t:o}=y(),{getShowFooter:e}=L(),{currentRoute:u}=R(),{prefixCls:d}=g("layout-footer"),r=$(null),{setFooterHeight:i}=H();return{getShowLayoutFooter:b(()=>{var s,t;if(a(e)){const l=(s=a(r))==null?void 0:s.$el;i((l==null?void 0:l.offsetHeight)||0)}else i(0);return a(e)&&!((t=a(u).meta)!=null&&t.hiddenFooter)}),prefixCls:d,t:o,DOC_URL:C,GITHUB_URL:F,SITE_URL:S,openWindow:h,footerRef:r}}}),O=o=>(D("data-v-791b0139"),o=o(),G(),o),V=O(()=>n("div",null,"Copyright ©2023 Simple Admin",-1));function A(o,e,u,d,r,i){const f=m("GithubFilled"),s=m("Footer");return o.getShowLayoutFooter?(k(),v(s,{key:0,class:p(o.prefixCls),ref:"footerRef"},{default:I(()=>[n("div",{class:p(`${o.prefixCls}__links`)},[n("a",{onClick:e[0]||(e[0]=t=>o.openWindow(o.SITE_URL))},c(o.t("layout.footer.onlinePreview")),1),U(f,{onClick:e[1]||(e[1]=t=>o.openWindow(o.GITHUB_URL)),class:p(`${o.prefixCls}__github`)},null,8,["class"]),n("a",{onClick:e[2]||(e[2]=t=>o.openWindow(o.DOC_URL))},c(o.t("layout.footer.onlineDocument")),1)],2),V]),_:1},8,["class"])):B("",!0)}const K=_(N,[["render",A],["__scopeId","data-v-791b0139"]]);export{K as default};
|