index-7ccb16f0.js 1.3 KB

1
  1. import{S as y,G as g,D as v}from"./siteSetting-efd6ab5b.js";import{l as C,h,a as x,D as i,_ as R}from"./index.js";import{d as S,R as k,f as L,c as b,u as e,Y as F,a6 as I,a7 as $,a0 as l,a9 as w,_ as a,$ as d,l as D,a1 as B,a2 as H}from"./vue-8fccce23.js";import{a as U}from"./useContentViewHeight-1753fb22.js";import{L as V,bi as G}from"./antd-ecb53b14.js";import"./useWindowSizeFn-8ad2dbf2.js";const N=s=>(B("data-v-9283fb62"),s=s(),H(),s),T=N(()=>a("div",null,"Copyright ©2020 Vben Admin",-1)),z=S({name:"LayoutFooter",__name:"index",setup(s){const{t:u}=x(),{getShowFooter:c}=C(),{currentRoute:p}=k(),{prefixCls:n}=h("layout-footer"),_=L(null),{setFooterHeight:f}=U(),m=b(()=>{var r,o;if(e(c)){const t=(r=e(_))==null?void 0:r.$el;f((t==null?void 0:t.offsetHeight)||0)}else f(0);return e(c)&&!((o=e(p).meta)!=null&&o.hiddenFooter)});return(r,o)=>m.value?(F(),I(e(V).Footer,{key:0,class:l(e(n)),ref_key:"footerRef",ref:_},{default:$(()=>[a("div",{class:l(`${e(n)}__links`)},[a("a",{onClick:o[0]||(o[0]=t=>e(i)(e(y)))},d(e(u)("layout.footer.onlinePreview")),1),D(e(G),{onClick:o[1]||(o[1]=t=>e(i)(e(g))),class:l(`${e(n)}__github`)},null,8,["class"]),a("a",{onClick:o[2]||(o[2]=t=>e(i)(e(v)))},d(e(u)("layout.footer.onlineDocument")),1)],2),T]),_:1},8,["class"])):w("",!0)}});const q=R(z,[["__scopeId","data-v-9283fb62"]]);export{q as default};