index-CqCIR--x.js 1.3 KB

1
  1. import{S as _,G as y,D as g}from"./siteSetting-BSGR9S7Z.js";import{m as C,h as k,b as v,D as r,_ as L}from"./entry/index-CRWhxBeP.js";import{d as R,f as x,c as F,Z as $,a4 as b,a5 as D,a1 as i,u as e,a8 as S,Y as w,$ as s,a0 as d,k as h}from"./vue-DM5HGU8Z.js";import{a as B}from"./useContentViewHeight-D9So7_ch.js";import{L as H,bn as I}from"./antd-BfqWtMX3.js";import"./useWindowSizeFn-CEueHQop.js";const U=R({name:"LayoutFooter",__name:"index",setup(V){const{t:l}=v(),{getShowFooter:u}=C(),{currentRoute:p}=w(),{prefixCls:a}=k("layout-footer"),f=x(null),{setFooterHeight:m}=B(),c=F(()=>{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?($(),b(e(H).Footer,{key:0,class:i(e(a)),ref_key:"footerRef",ref:f},{default:D(()=>[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(I),{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"])):S("",!0)}}),P=L(U,[["__scopeId","data-v-a1a86b86"]]);export{P as default};