99AI/public/assets/Loading-05848be1.js
2024-04-20 22:15:08 +08:00

2 lines
858 B
JavaScript

import{g,ak as u,k as n,F as s,G as m,O as f,P as k,S as t,Z as d,N as p,E as o,ax as v}from"./index-2efe4620.js";const y={class:"loading-text"},b={key:0,class:"progress"},x={key:1,class:"progress"},h=g({__name:"Loading",props:{gap:{default:10},progress:{default:0},tips:{default:""},bgColor:{},words:{default:["L","O","A","D","I","N","G"]}},setup(l){const e=l,c=u(),i=n(()=>c.theme),_=n(()=>i.value==="dark"?"#fff":"#000");return(a,L)=>(o(),s("div",{class:"loading",style:p({background:e.bgColor})},[m("div",y,[(o(!0),s(f,null,k(e.words,r=>(o(),s("span",{key:r,style:p({margin:`0 ${e.gap}px`,color:_.value}),class:"loading-text-words"},t(r),5))),128))]),!a.tips&&e.progress?(o(),s("div",b," 绘制进度: "+t(e.progress)+"% ",1)):d("",!0),a.tips?(o(),s("div",x,t(e.tips),1)):d("",!0)],4))}});const S=v(h,[["__scopeId","data-v-07d64bb6"]]);export{S as L};