Files
qhmes/deploy-qhmes/frontend/js/index-BvMv-ojL.js
2026-05-15 11:34:12 +08:00

2 lines
5.1 KiB
Java

var T=(e,a,o)=>new Promise((c,l)=>{var u=r=>{try{n(o.next(r))}catch(t){l(t)}},s=r=>{try{n(o.throw(r))}catch(t){l(t)}},n=r=>r.done?c(r.value):Promise.resolve(r.value).then(u,s);n((o=o.apply(e,a)).next())});import{aq as O,e as v,J as Q,u as p,d as L,ah as S,ar as d,ag as _,as as g,F as w,aD as q,q as R,aC as C,B as A,aN as H,f as z,w as J,k as M,aF as G,aU as U,aQ as B,aB as j,au as h,av as W,o as X,v as Y,at as Z}from"./vue-vendor-C7Zq48Yl.js";import x from"./index-C-uF0cin.js";import{cf as V,d as k,R as $,Q as ee,d0 as P,d1 as te,cJ as ne,d2 as D,n as ae,q as oe}from"./index-BI6CMai0.js";import{aO as se}from"./antd-vue-vendor-BPnV8VqP.js";import{useMultipleTabSetting as I}from"./useMultipleTabSetting-Np7SrBLB.js";import{useHeaderSetting as re}from"./useHeaderSetting-D8CH7HQm.js";import{a as ie}from"./useContentViewHeight-BO9bTdue.js";import"./useWindowSizeFn-PRZSD86C.js";import"./vxe-table-vendor-B88kchpX.js";import"./usePageContext-l-f4bNz7.js";function ce(){const e=O(),{currentRoute:a}=e,{getShowMultipleTab:o}=I(),c=V(),l=v(()=>s(Q(e.getRoutes()))||[]),u=v(()=>c.getTabList.reduce((t,i)=>(i.meta&&Reflect.has(i.meta,"frameSrc")&&t.push(i.name),t),[]));function s(t){let i=[];for(const f of t){const{meta:{frameSrc:m}={},children:b}=f;m&&i.push(f),b&&b.length&&i.push(...s(b))}return i=se(i,"name"),i}function n(t){return t.name===p(a).name}function r(t){return p(o)?p(u).includes(t):e.currentRoute.value.name===t}return{hasRenderFrame:r,getFramePages:l,showIframe:n,getAllFramePages:s}}const ue=L({name:"FrameLayout",components:{FramePage:x},setup(){const{getFramePages:e,hasRenderFrame:a,showIframe:o}=ce(),c=v(()=>p(e).length>0);return{getFramePages:e,hasRenderFrame:a,showIframe:o,showFrame:c}}}),le={key:0};function ge(e,a,o,c,l,u){const s=S("FramePage");return e.showFrame?(g(),d("div",le,[(g(!0),d(w,null,q(e.getFramePages,n=>(g(),d(w,{key:n.path},[n.meta.frameSrc&&e.hasRenderFrame(n.name)?R((g(),C(s,{key:0,frameSrc:n.meta.frameSrc},null,8,["frameSrc"])),[[A,e.showIframe(n)]]):_("",!0)],64))),128))])):_("",!0)}const me=k(ue,[["render",ge]]);function fe({route:e,openCache:a,cacheTabs:o,enableTransition:c,def:l}){if(!c)return;const u=o.includes(e.name),s="fade-slide";let n=s;return a&&(n=u&&e.meta.loaded?s:void 0),n||e.meta.transitionName||l}const pe=()=>{const{getThemeColor:e,getDarkMode:a}=$(),o=H(),{getHeaderBgColor:c}=re(),{getMenuBgColor:l}=ee(),u=z(""),s=v(()=>{const t=p(e)||"#1890ff",i=p(l)||"#ffffff",f=p(c),m=p(a)==="dark",b=P(t,25),y=t,F=P(f,45),N=P(f,10),E=P(i,35),K=te(t,5);return{"--blob-a-1":b,"--blob-a-2":y,"--blob-b-1":F,"--blob-b-2":N,"--blob-c-1":E,"--blob-c-2":K,"--bg-1":m?"#0f172a":"#f7f8fa","--bg-2":m?"#111827":"#f2f5f9","--grid-color":m?"rgba(255,255,255,0.04)":"rgba(60,70,90,0.06)","--tip-color":m?"#626262":"#b9b9b9","--tip-bg":m?"rgba(17,24,39,0.6)":"rgba(255,255,255,0.6)","--tip-border":m?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)"}}),n=t=>T(null,null,function*(){const i=yield ne(),f=r(i,t.path);f&&(["/layouts/default/index"].includes(f.originComponent)?u.value="点击子菜单跳转到对应外部链接!":u.value="查看组件引用是否正确")});J(o,()=>{n({path:window.location.pathname})},{immediate:!0});function r(t,i){var f;for(let m=0,b=t.length;m<b;m++){const y=t[m];if(y.path===i)return y;if((f=y.children)!=null&&f.length){const F=r(y.children,i);if(F)return F}}return null}return{pageTip:u,getPageTip:n,effectVars:s}},de=L({name:"PageLayout",components:{FrameLayout:me},setup(){const{getShowMultipleTab:e}=I(),a=V(),{getOpenKeepAlive:o,getCanEmbedIFramePage:c}=$(),{getBasicTransition:l,getEnableTransition:u}=D(),s=v(()=>p(o)&&p(e)),n=v(()=>p(o)?a.getCachedTabList:[]),{pageTip:r,getPageTip:t,effectVars:i}=pe();return{getTransitionName:fe,openCache:s,getEnableTransition:u,getBasicTransition:l,getCaches:n,getCanEmbedIFramePage:c,pageTip:r,getPageTip:t,effectVars:i}}}),be={class:"effect-tip"};function he(e,a,o,c,l,u){const s=S("RouterView"),n=S("FrameLayout");return g(),d(w,null,[M(s,null,{default:G(({Component:r,route:t})=>[r?(g(),d(w,{key:0},[e.openCache?(g(),C(U,{key:0,include:e.getCaches},[(g(),C(B(r),{key:t.fullPath}))],1032,["include"])):(g(),C(B(r),{key:t.fullPath}))],64)):(g(),d("div",{key:1,class:"animationEffect",style:j(e.effectVars)},[a[0]||(a[0]=h("div",{class:"effect-layer"},[h("div",{class:"blob blob-a"}),h("div",{class:"blob blob-b"}),h("div",{class:"blob blob-c"})],-1)),a[1]||(a[1]=h("div",{class:"effect-grid"},null,-1)),h("div",be,[h("p",null,W(e.pageTip),1)])],4))]),_:1}),e.getCanEmbedIFramePage?(g(),C(n,{key:0})):_("",!0)],64)}const ye=k(de,[["render",he],["__scopeId","data-v-2956afcf"]]),ve=L({name:"LayoutContent",components:{PageLayout:ye},setup(){const{prefixCls:e}=ae("layout-content"),{getOpenPageLoading:a}=D(),{getLayoutContentMode:o,getPageLoading:c}=$(),u=oe().openQianKun;return ie(),X(()=>{}),{prefixCls:e,openQianKun:u,getOpenPageLoading:a,getLayoutContentMode:o,getPageLoading:c}}}),Ce={key:0,id:"content",class:"app-view-box"};function Fe(e,a,o,c,l,u){const s=S("PageLayout"),n=Y("loading");return R((g(),d("div",{class:Z([e.prefixCls,e.getLayoutContentMode])},[M(s),e.openQianKun=="true"?(g(),d("div",Ce)):_("",!0)],2)),[[n,e.getOpenPageLoading&&e.getPageLoading]])}const Oe=k(ve,[["render",Fe]]);export{Oe as default};