mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect.git
synced 2025-06-24 13:34:13 +08:00
2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
import{D as C,G as _,S as y}from"./siteSetting-efd6ab5b.js";import{A as F,u as g,W as L,t as R,_ as $}from"./index.js";import{d as v,S as w,f as S,c as k,u as n,Z as U,a4 as h,a5 as D,a1 as u,a8 as G,a6 as m,$ as a,a0 as c,k as I}from"./vue-72a104e4.js";import{u as W}from"./useContentViewHeight-f46e6f8d.js";import{L as b,aW as B}from"./antd-029ed741.js";import"./useWindowSizeFn-46f0db92.js";const H=v({name:"LayoutFooter",components:{Footer:b.Footer,GithubFilled:B},setup(){const{t:o}=R(),{getShowFooter:e}=F(),{currentRoute:f}=w(),{prefixCls:p}=g("layout-footer"),r=S(null),{setFooterHeight:i}=W();return{getShowLayoutFooter:k(()=>{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(f).meta)!=null&&t.hiddenFooter)}),prefixCls:p,t:o,DOC_URL:C,GITHUB_URL:_,SITE_URL:y,openWindow:L,footerRef:r}}});function T(o,e,f,p,r,i){const d=m("GithubFilled"),s=m("Footer");return o.getShowLayoutFooter?(U(),h(s,{key:0,class:u(o.prefixCls),ref:"footerRef"},{default:D(()=>[a("div",{class:u(`${o.prefixCls}__links`)},[a("a",{onClick:e[0]||(e[0]=t=>o.openWindow(o.SITE_URL))},c(o.t("layout.footer.onlinePreview")),1),I(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))},c(o.t("layout.footer.onlineDocument")),1)],2),e[3]||(e[3]=a("div",null,"Copyright ©2020 Vben Admin",-1))]),_:1},8,["class"])):G("",!0)}const P=$(H,[["render",T],["__scopeId","data-v-0f5faecd"]]);export{P as default};
|