Deploying to gh-pages from @ pure-admin/vue-pure-admin@e2f36e5915 🚀

This commit is contained in:
xiaoxian521
2026-01-19 02:47:40 +00:00
parent 08621cec6a
commit a48cfd3e94
451 changed files with 383 additions and 383 deletions

View File

@@ -0,0 +1 @@
var R=Object.defineProperty,T=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var N=(n,e,t)=>e in n?R(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,k=(n,e)=>{for(var t in e||(e={}))D.call(e,t)&&N(n,t,e[t]);if(_)for(var t of _(e))$.call(e,t)&&N(n,t,e[t]);return n},P=(n,e)=>T(n,V(e));var E=(n,e,t)=>new Promise((v,o)=>{var c=s=>{try{i(t.next(s))}catch(d){o(d)}},u=s=>{try{i(t.throw(s))}catch(d){o(d)}},i=s=>s.done?v(s.value):Promise.resolve(s.value).then(c,u);i((t=t.apply(n,e)).next())});import{d as M,a as g,M as p,p as I,n as h,k as X,f as L,F as Y,g as j,e as z,i as O,u as S,s as C,w as G,h as y,j as H,eL as J,eM as K,x as Q,_ as U}from"./index-B_cVej0C.js";import{P as q,u as W,d as Z,g as ee,e as te,f as ae}from"./vue-flow-core-B83_Jvqk.js";const ne=M({__name:"animationEdge",props:{id:{type:String,required:!0},source:{type:String,required:!0},target:{type:String,required:!0},sourceX:{type:Number,required:!0},sourceY:{type:Number,required:!0},targetX:{type:Number,required:!0},targetY:{type:Number,required:!0},sourcePosition:{type:String,default:q.Right},targetPosition:{type:String,default:q.Left}},setup(n){const e=n,{findEdge:t}=W(),v=Z([e.target,e.source]),o=g(0),c=g(),u=g({x:0,y:0}),i=g(0),s=p(()=>v.value[0].data),d=p(()=>v.value[1].data),A=p(()=>d.value.isFinished),F=p(()=>s.value.isCancelled),l=g(!1),w=p(()=>s.value.hasError?"#f87171":s.value.isFinished?"#42B983":s.value.isCancelled||s.value.isSkipped?"#fbbf24":s.value.isRunning||l.value?"#2563eb":"#6b7280"),B=I(()=>ee(e));h(F,r=>{r&&b()}),h(l,r=>{const a=t(e.id);a&&(a.data=P(k({},a.data),{isAnimating:r}))}),h(o,r=>{var f;const a=(f=c.value)==null?void 0:f.pathEl;if(!a||r===0||!l.value)return;const m=a.getTotalLength();if(i.value!==m){x();return}u.value=a.getPointAtLength(r)}),h(A,r=>{r&&x()});function x(){return E(this,null,function*(){var f;const r=(f=c.value)==null?void 0:f.pathEl;if(!r)return;const a=r.getTotalLength(),m=o.value||0;u.value=r.getPointAtLength(m),l.value=!0,i.value!==a&&(i.value=a),yield J(o,m,a,{transition:K.easeInOutCubic,duration:Math.max(1500,a/2),abort:()=>!l.value}),b()})}function b(){Q(()=>{o.value=0,i.value=0,u.value={x:0,y:0},l.value=!1})}return(r,a)=>(L(),X(Y,null,[j(S(te),{id:n.id,ref_key:"edgeRef",ref:c,path:B.value[0],style:C({stroke:w.value})},null,8,["id","path","style"]),l.value?(L(),z(S(ae),{key:0},{default:G(()=>[y("div",{style:C({transform:`translate(-50%, -50%) translate(${u.value.x}px,${u.value.y}px)`}),class:"nodrag nopan animated-edge-label"},[...a[0]||(a[0]=[y("span",{class:"truck"},[y("span",{class:"box"},"📦"),H(" 🚚 ")],-1)])],4)]),_:1})):O("",!0)],64))}}),oe=U(ne,[["__scopeId","data-v-efeea646"]]);export{oe as default};