index-5f3269b5.js 1.67 KB
import{d as _,U as C,k as y,e as F,u as a,a8 as c,_ as g,a9 as h,aa as v,a0 as n,a1 as m,f as L,a2 as u,ac as S,a3 as w,a4 as R}from"./vue-5a35c3f5.js";import{D as $,G as I,S as U}from"./siteSetting-efd6ab5b.js";import{N as k,h as b,B,c as D,_ as G}from"./index.js";import{a as H}from"./useContentViewHeight-d0a5c58e.js";import{a6 as N,bC as T}from"./antd-6b087f69.js";import"./useWindowSizeFn-cc2fb57c.js";const V=_({name:"LayoutFooter",components:{Footer:N.Footer,GithubFilled:T},setup(){const{t:e}=D(),{getShowFooter:o}=k(),{currentRoute:d}=C(),{prefixCls:p}=b("layout-footer"),r=y(null),{setFooterHeight:i}=H();return{getShowLayoutFooter:F(()=>{var s,t;if(a(o)){const l=(s=a(r))==null?void 0:s.$el;i((l==null?void 0:l.offsetHeight)||0)}else i(0);return a(o)&&!((t=a(d).meta)!=null&&t.hiddenFooter)}),prefixCls:p,t:e,DOC_URL:$,GITHUB_URL:I,SITE_URL:U,openWindow:B,footerRef:r}}});const W=e=>(w("data-v-dcef2a47"),e=e(),R(),e),A=W(()=>n("div",null,"Copyright ©2020 Vben Admin",-1));function E(e,o,d,p,r,i){const f=c("GithubFilled"),s=c("Footer");return e.getShowLayoutFooter?(g(),h(s,{key:0,class:u(e.prefixCls),ref:"footerRef"},{default:v(()=>[n("div",{class:u(`${e.prefixCls}__links`)},[n("a",{onClick:o[0]||(o[0]=t=>e.openWindow(e.SITE_URL))},m(e.t("layout.footer.onlinePreview")),1),L(f,{onClick:o[1]||(o[1]=t=>e.openWindow(e.GITHUB_URL)),class:u(`${e.prefixCls}__github`)},null,8,["class"]),n("a",{onClick:o[2]||(o[2]=t=>e.openWindow(e.DOC_URL))},m(e.t("layout.footer.onlineDocument")),1)],2),A]),_:1},8,["class"])):S("v-if",!0)}const J=G(V,[["render",E],["__scopeId","data-v-dcef2a47"],["__file","E:/allcode/erp/test7901/order-erp-front/src/layouts/default/footer/index.vue"]]);export{J as default};