| 1 |
- import{j as _,a as C,e2 as v,k as y,dM as F,dv as g,b as h,r as L,c as S,h as n,dE as w,O as m,o as R,Q as $,x as I,f as a,n as u,z as c,i as k,af as U,eK as G,eL as b}from"./index.ae52ebae.js";import{D,G as B,S as H}from"./siteSetting.79764fff.js";import{a as T}from"./useContentViewHeight.2a59a8a3.js";import{G as V}from"./GithubFilled.c1d6e5d2.js";import"./useWindowSizeFn.d176b3a5.js";const W=C({name:"LayoutFooter",components:{Footer:v.Footer,GithubFilled:V},setup(){const{t:e}=y(),{getShowFooter:o}=F(),{currentRoute:d}=g(),{prefixCls:p}=h("layout-footer"),r=L(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(d).meta)!=null&&t.hiddenFooter)}),prefixCls:p,t:e,DOC_URL:D,GITHUB_URL:B,SITE_URL:H,openWindow:w,footerRef:r}}}),N=e=>(G("data-v-62583d60"),e=e(),b(),e),O=N(()=>a("div",null,"Copyright \xA92020 Vben Admin",-1));function z(e,o,d,p,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),k(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),O]),_:1},8,["class"])):U("",!0)}var M=_(W,[["render",z],["__scopeId","data-v-62583d60"]]);export{M as default};
|