1 |
- import{x as c,j as _,y as f,r as p,_ as g}from"./index-EwE51S_X.js";import{g as i,r as n}from"./router-SYMbkQDJ.js";import{d as v,r as b,A as h,K as w,aq as R,e as r,f as l,am as x,i as C,j as V,L as k,m as y,t as N,C as T}from"./vue-A59npLRR.js";import"./echarts-cxb9vJr1.js";const A=["element-loading-text"],B={key:0,class:"loading-footer"},D=v({__name:"loading",setup(j){let a;const o=c(),s=_(),t=b({maximumWait:1e3*6,showReload:!1}),m=()=>{p.go(0)};if(f()&&o.state.tabsViewRoutes){let e=i(o.state.tabsViewRoutes);e&&n(e.path)}else if(s.state.viewRoutes){let e=i(s.state.viewRoutes);e&&n(e.path)}return a=window.setTimeout(()=>{t.showReload=!0},t.maximumWait),h(()=>{clearTimeout(a)}),(e,L)=>{const d=w("el-button"),u=R("loading");return r(),l("div",null,[x(C("div",{"element-loading-background":"var(--ba-bg-color-overlay)","element-loading-text":e.$t("utils.Loading"),class:"default-main ba-main-loading"},null,8,A),[[u,!0]]),t.showReload?(r(),l("div",B,[V(d,{onClick:m,type:"warning"},{default:k(()=>[y(N(e.$t("utils.Reload")),1)]),_:1})])):T("",!0)])}}}),F=g(D,[["__scopeId","data-v-55975bfe"]]);export{F as default};
|