You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.5 KiB

import{d as _,et as C,aD as F,cb as y,m as g,r as h,f as w,u as n,bj as L,e as b,b6 as v,aT as R,aU as f,o as S,a as U,w as $,j as a,t as m,b as I,x as l,i as k,dU as B,dV as D}from"./index-f4658ae7.js";import{DOC_URL as G,GITHUB_URL as H,SITE_URL as T}from"./siteSetting-2a167a02.js";import{G as V}from"./GithubFilled-26a5fd51.js";const W=_({name:"LayoutFooter",components:{Footer:C.Footer,GithubFilled:V},setup(){const{t:o}=b(),{getShowFooter:e}=F(),{currentRoute:p}=y(),{prefixCls:d}=g("layout-footer"),r=h(null),{setFooterHeight:i}=v();return{getShowLayoutFooter:w(()=>{var s,t;if(n(e)){const u=(s=n(r))==null?void 0:s.$el;i((u==null?void 0:u.offsetHeight)||0)}else i(0);return n(e)&&!((t=n(p).meta)!=null&&t.hiddenFooter)}),prefixCls:d,t:o,DOC_URL:G,GITHUB_URL:H,SITE_URL:T,openWindow:L,footerRef:r}}});const A=o=>(B("data-v-b83557c5"),o=o(),D(),o),N=A(()=>a("div",null,"Copyright \xA92022 \u9A70\u9A8B\u5E73\u53F0",-1));function j(o,e,p,d,r,i){const c=f("GithubFilled"),s=f("Footer");return o.getShowLayoutFooter?(S(),U(s,{key:0,class:l(o.prefixCls),ref:"footerRef"},{default:$(()=>[a("div",{class:l(`${o.prefixCls}__links`)},[a("a",{onClick:e[0]||(e[0]=t=>o.openWindow(o.SITE_URL))},m(o.t("layout.footer.onlinePreview")),1),I(c,{onClick:e[1]||(e[1]=t=>o.openWindow(o.GITHUB_URL)),class:l(`${o.prefixCls}__github`)},null,8,["class"]),a("a",{onClick:e[2]||(e[2]=t=>o.openWindow(o.DOC_URL))},m(o.t("layout.footer.onlineDocument")),1)],2),N]),_:1},8,["class"])):k("",!0)}const z=R(W,[["render",j],["__scopeId","data-v-b83557c5"]]);export{z as default};