lcny-vue3-antd-admin/dist/assets/index.c9a6cee9.js

2 lines
1.5 KiB
JavaScript

import{L as _,a as y,bJ as C,c as v,bD as F,be as g,b as L,v as h,f as S,k as n,aP as w,aG as m,o as R,j as $,z as I,i as a,q as u,t as c,n as b,l as k,ex as G,ey as U}from"./index.10d06543.js";import{D,G as B,S as H}from"./siteSetting.c485f07c.js";import{a as T}from"./useContentViewHeight.1f792a27.js";import{G as W}from"./GithubFilled.0c427097.js";import"./useWindowSizeFn.a9703094.js";const N=y({name:"LayoutFooter",components:{Footer:C.Footer,GithubFilled:W},setup(){const{t:e}=v(),{getShowFooter:o}=F(),{currentRoute:p}=g(),{prefixCls:d}=L("layout-footer"),r=h(null),{setFooterHeight:i}=T();return{getShowLayoutFooter:S(()=>{var s,t;if(n(o)){const l=(s=n(r))==null?void 0:s.$el;i((l==null?void 0:l.offsetHeight)||0)}else i(0);return n(o)&&!((t=n(p).meta)!=null&&t.hiddenFooter)}),prefixCls:d,t:e,DOC_URL:D,GITHUB_URL:B,SITE_URL:H,openWindow:w,footerRef:r}}}),V=e=>(G("data-v-59292e9a"),e=e(),U(),e),z=V(()=>a("div",null,"Copyright \xA92020 Admin ",-1));function A(e,o,p,d,r,i){const f=m("GithubFilled"),s=m("Footer");return e.getShowLayoutFooter?(R(),$(s,{key:0,class:u(e.prefixCls),ref:"footerRef"},{default:I(()=>[a("div",{class:u(`${e.prefixCls}__links`)},[a("a",{onClick:o[0]||(o[0]=t=>e.openWindow(e.SITE_URL))},c(e.t("layout.footer.onlinePreview")),1),b(f,{onClick:o[1]||(o[1]=t=>e.openWindow(e.GITHUB_URL)),class:u(`${e.prefixCls}__github`)},null,8,["class"]),a("a",{onClick:o[2]||(o[2]=t=>e.openWindow(e.DOC_URL))},c(e.t("layout.footer.onlineDocument")),1)],2),z]),_:1},8,["class"])):k("",!0)}var E=_(N,[["render",A],["__scopeId","data-v-59292e9a"]]);export{E as default};