index.a2f08d46.js 1.6 KB

1
  1. import{aw as _,a as C,bH as y,c as F,bB as b,b8 as g,b as v,s as w,f as h,i as n,aD as L,w as m,o as S,j as R,z as $,m as a,q as u,t as c,n as I,k,eM as U,eN as D}from"./index.7e08ba81.js";import{D as G,G as B,S as H}from"./siteSetting.c485f07c.js";import{a as N}from"./useContentViewHeight.eee5bfce.js";import{G as T}from"./GithubFilled.31d44c9d.js";import"./useWindowSizeFn.9cd1b73f.js";const V=C({name:"LayoutFooter",components:{Footer:y.Footer,GithubFilled:T},setup(){const{t:o}=F(),{getShowFooter:e}=b(),{currentRoute:p}=g(),{prefixCls:d}=v("layout-footer"),r=w(null),{setFooterHeight:i}=N();return{getShowLayoutFooter:h(()=>{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(p).meta)!=null&&t.hiddenFooter)}),prefixCls:d,t:o,DOC_URL:G,GITHUB_URL:B,SITE_URL:H,openWindow:L,footerRef:r}}}),W=o=>(U("data-v-0bf7ba29"),o=o(),D(),o),z=W(()=>a("div",null,"Copyright \xA92020 Vben Admin",-1));function A(o,e,p,d,r,i){const f=m("GithubFilled"),s=m("Footer");return o.getShowLayoutFooter?(S(),R(s,{key:0,class:u(o.prefixCls),ref:"footerRef"},{default:$(()=>[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),I(f,{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),z]),_:1},8,["class"])):k("",!0)}var P=_(V,[["render",A],["__scopeId","data-v-0bf7ba29"]]);export{P as default};