detect/detect.gui/Embedded/dist/assets/index-9b7cd31b.js

2 lines
1.5 KiB
JavaScript
Raw Normal View History

2025-05-08 11:41:35 +08:00
import{D as C,G as _,S as y}from"./siteSetting-efd6ab5b.js";import{D as F,u as g,Y as L,x as $,_ as R}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 b}from"./useContentViewHeight-4d801f45.js";import{L as B,a$ as H}from"./antd-0b1a4d04.js";import"./useWindowSizeFn-c13a0e28.js";const T=v({name:"LayoutFooter",components:{Footer:B.Footer,GithubFilled:H},setup(){const{t:o}=$(),{getShowFooter:e}=F(),{currentRoute:f}=w(),{prefixCls:p}=g("layout-footer"),r=S(null),{setFooterHeight:i}=b();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 V(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 E=R(T,[["render",V],["__scopeId","data-v-0f5faecd"]]);export{E as default};