1 |
- import{D as F,G as c,S as L}from"./siteSetting--X_-_MSh.js";import{k as g,f as y,B as R,b as S,_ as w}from"./entry/index-DJx93RYF-1731481145019.js";import{d as $,f as k,c as v,S as U,u as n,_ as b,a6 as h,a7 as _,a1 as a,a2 as m,k as B,a3 as u,a0 as D,a9 as C}from"./vue-B5pbXMv7.js";import{a as G}from"./useContentViewHeight-zMceS2T9.js";import{L as I,bX as H}from"./antd-CBeLo_oO.js";import"./useWindowSizeFn-BxA6-zLj.js";const T=$({name:"LayoutFooter",components:{Footer:I.Footer,GithubFilled:H},setup(){const{t:o}=S(),{getShowFooter:e}=g(),{currentRoute:p}=U(),{prefixCls:f}=y("layout-footer"),r=k(null),{setFooterHeight:i}=G();return{getShowLayoutFooter:v(()=>{var s,t;if(n(e)){const l=(s=n(r))==null?void 0:s.$el;i((l==null?void 0:l.offsetHeight)||0)}else i(0);return n(e)&&!((t=n(p).meta)!=null&&t.hiddenFooter)}),prefixCls:f,t:o,DOC_URL:F,GITHUB_URL:c,SITE_URL:L,openWindow:R,footerRef:r}}});function W(o,e,p,f,r,i){const d=C("GithubFilled"),s=C("Footer");return o.getShowLayoutFooter?(b(),h(s,{key:0,class:u(o.prefixCls),ref:"footerRef"},{default:_(()=>[a("div",{class:u(`${o.prefixCls}__links`)},[a("a",{onClick:e[0]||(e[0]=t=>o.openWindow(o.SITE_URL))},m(o.t("layout.footer.onlinePreview")),1),B(d,{onClick:e[1]||(e[1]=t=>o.openWindow(o.GITHUB_URL)),class:u(`${o.prefixCls}__github`)},null,8,["class"]),a("a",{onClick:e[2]||(e[2]=t=>o.openWindow(o.DOC_URL))},m(o.t("layout.footer.onlineDocument")),1)],2),e[3]||(e[3]=a("div",null,"Copyright ©2023 Simple Admin",-1))]),_:1},8,["class"])):D("",!0)}const P=w(T,[["render",W],["__scopeId","data-v-791b0139"]]);export{P as default};
|