2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
import{L as _,a as C,bJ as v,c as y,bD as F,be as g,b as L,v as h,f as S,k as n,aP as w,aG as m,o as R,j as $,z as I,i as a,q as u,t as c,n as b,l as k,eA as G,eB as U}from"./index.867f48c0.js";import{D,G as B,S as H}from"./siteSetting.c485f07c.js";import{a as T}from"./useContentViewHeight.221a05c7.js";import{G as W}from"./GithubFilled.4c3ca6f1.js";import"./useWindowSizeFn.08bc7e9a.js";const A=C({name:"LayoutFooter",components:{Footer:v.Footer,GithubFilled:W},setup(){const{t:e}=y(),{getShowFooter:o}=F(),{currentRoute:p}=g(),{prefixCls:d}=L("layout-footer"),r=h(null),{setFooterHeight:i}=T();return{getShowLayoutFooter:S(()=>{var s,t;if(n(o)){const l=(s=n(r))==null?void 0:s.$el;i((l==null?void 0:l.offsetHeight)||0)}else i(0);return n(o)&&!((t=n(p).meta)!=null&&t.hiddenFooter)}),prefixCls:d,t:e,DOC_URL:D,GITHUB_URL:B,SITE_URL:H,openWindow:w,footerRef:r}}}),N=e=>(G("data-v-59292e9a"),e=e(),U(),e),V=N(()=>a("div",null,"Copyright \xA92020 Admin ",-1));function z(e,o,p,d,r,i){const f=m("GithubFilled"),s=m("Footer");return e.getShowLayoutFooter?(R(),$(s,{key:0,class:u(e.prefixCls),ref:"footerRef"},{default:I(()=>[a("div",{class:u(`${e.prefixCls}__links`)},[a("a",{onClick:o[0]||(o[0]=t=>e.openWindow(e.SITE_URL))},c(e.t("layout.footer.onlinePreview")),1),b(f,{onClick:o[1]||(o[1]=t=>e.openWindow(e.GITHUB_URL)),class:u(`${e.prefixCls}__github`)},null,8,["class"]),a("a",{onClick:o[2]||(o[2]=t=>e.openWindow(e.DOC_URL))},c(e.t("layout.footer.onlineDocument")),1)],2),V]),_:1},8,["class"])):k("",!0)}var J=_(A,[["render",z],["__scopeId","data-v-59292e9a"]]);export{J as default};
|