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