2025-04-18 09:53:39 +08:00
|
|
|
import{D as _,G as C,S as y}from"./siteSetting-efd6ab5b.js";import{B as F,u as g,X as L,v,_ as R}from"./index.js";import{d as $,S as w,f as S,c as k,u as n,Z as U,a4 as h,a5 as B,a1 as u,a8 as D,a6 as m,$ as a,a0 as c,k as G}from"./vue-72a104e4.js";import{u as I}from"./useContentViewHeight-1771cd5b.js";import{L as b,a_ as H}from"./antd-0679333d.js";import"./useWindowSizeFn-1db11f4f.js";const T=$({name:"LayoutFooter",components:{Footer:b.Footer,GithubFilled:H},setup(){const{t:o}=v(),{getShowFooter:e}=F(),{currentRoute:f}=w(),{prefixCls:p}=g("layout-footer"),r=S(null),{setFooterHeight:i}=I();return{getShowLayoutFooter:k(()=>{var s,t;if(n(e)){const l=(s=n(r))==null?void 0:s.$el;i((l==null?void 0:l.offsetHeight)||0)}else i(0);return n(e)&&!((t=n(f).meta)!=null&&t.hiddenFooter)}),prefixCls:p,t:o,DOC_URL:_,GITHUB_URL:C,SITE_URL:y,openWindow:L,footerRef:r}}});function V(o,e,f,p,r,i){const d=m("GithubFilled"),s=m("Footer");return o.getShowLayoutFooter?(U(),h(s,{key:0,class:u(o.prefixCls),ref:"footerRef"},{default:B(()=>[a("div",{class:u(`${o.prefixCls}__links`)},[a("a",{onClick:e[0]||(e[0]=t=>o.openWindow(o.SITE_URL))},c(o.t("layout.footer.onlinePreview")),1),G(d,{onClick:e[1]||(e[1]=t=>o.openWindow(o.GITHUB_URL)),class:u(`${o.prefixCls}__github`)},null,8,["class"]),a("a",{onClick:e[2]||(e[2]=t=>o.openWindow(o.DOC_URL))},c(o.t("layout.footer.onlineDocument")),1)],2),e[3]||(e[3]=a("div",null,"Copyright ©2020 Vben Admin",-1))]),_:1},8,["class"])):D("",!0)}const P=R(T,[["render",V],["__scopeId","data-v-0f5faecd"]]);export{P as default};
|