| 1 |
- import{d as L,ap as h,f as k,e as p,u as t,aI as S,ag as g,aB as $,ah as w,ar as b,as as f,aD as U,at as n,k as G,au as _}from"./vue-vendor-Be68asQ6.js";import{bf as I,a9 as B}from"./antd-vue-vendor-DcqS7Wvq.js";import{S as E,G as H,D as T}from"./siteSetting-DoyCDlSB.js";import{N as V,D as y,F as A,ay as N,o as W,a as O}from"./index-BFfnEkVs.js";import{u as j}from"./useContentViewHeight-BVCc9jQl.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./usePageContext-WlOC5VNa.js";import"./useWindowSizeFn-BTSGGcie.js";const d=L({name:"LayoutFooter",components:{Footer:B.Footer,GithubFilled:I},setup(){const{t:o}=V(),{getShowFooter:e}=y(),{currentRoute:m}=h(),{prefixCls:C}=A("layout-footer"),r=k(null),{setFooterHeight:a}=j(),{getDarkMode:u}=y(),i=p(()=>u.value===N.DARK),s=p(()=>{var c,F;if(t(e)){const l=(c=t(r))==null?void 0:c.$el;a((l==null?void 0:l.offsetHeight)||0)}else a(0);return t(e)&&!((F=t(m).meta)!=null&&F.hiddenFooter)}),D=p(()=>t(i)?"rgba(255, 255, 255, 1)":"rgba(0, 0, 0, 0.85)");return{getShowLayoutFooter:s,prefixCls:C,t:o,DOC_URL:T,GITHUB_URL:H,SITE_URL:E,openWindow:W,footerRef:r,hoverColor:D}}}),R=()=>{S(o=>({"735092e7":o.hoverColor}))},v=d.setup;d.setup=v?(o,e)=>(R(),v(o,e)):R;function z(o,e,m,C,r,a){const u=g("GithubFilled"),i=g("Footer");return o.getShowLayoutFooter?(b(),$(i,{key:0,class:f(o.prefixCls),ref:"footerRef"},{default:U(()=>[n("div",{class:f(`${o.prefixCls}__links`)},[n("a",{onClick:e[0]||(e[0]=s=>o.openWindow(o.SITE_URL))},_(o.t("layout.footer.onlinePreview")),1),G(u,{onClick:e[1]||(e[1]=s=>o.openWindow(o.GITHUB_URL)),class:f(`${o.prefixCls}__github`)},null,8,["class"]),n("a",{onClick:e[2]||(e[2]=s=>o.openWindow(o.DOC_URL))},_(o.t("layout.footer.onlineDocument")),1)],2),e[3]||(e[3]=n("div",null,"Copyright ©2021 JEECG开源社区 出品",-1))]),_:1},8,["class"])):w("",!0)}const Z=O(d,[["render",z],["__scopeId","data-v-4e54f13b"]]);export{Z as default};
|