index-DMtk9Re6.js 1.3 KB

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