Files
anmo/server/public/admin/assets/index-SAsEZJ5l.js
2025-08-21 16:20:27 +08:00

7 lines
19 KiB
JavaScript

import{as as z,at as b,d as j,ao as M,c as C,e2 as Be,e3 as ge,d_ as Oe,e4 as me,e5 as ye,aC as he,a7 as ae,o as v,a as E,D as h,f as e,b as T,ar as A,a3 as P,t as V,G as w,B as O,w as R,Y as Ne,U as q,aq as W,ax as be,aE as se,ag as ke,e6 as $e,du as ee,e7 as F,bj as je,ac as G,r as H,F as we,e as Ee,n as Se,R as K,m as B,e8 as _e,e9 as Ae,ea as qe,aM as Ie,aa as Me,s as X,eb as oe,ec as Ke,ed as ze,O as ne,ae as He,aF as Ve,au as We,d2 as Xe,b8 as re,bb as le,g as Ge,ee as Z,ef as ie,C as x,x as Je}from"./index-Bp03Znup.js";/* empty css */import{c as ue}from"./cloneDeep-C-uticou.js";import{i as Ye}from"./isEqual-BGjWqnUO.js";import{E as Qe}from"./index-HD6fPohC.js";const Ze=z({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:s=>s>=0&&s<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:b(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:b([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:b(Function),default:s=>`${s}%`}}),xe=j({name:"ElProgress"}),et=j({...xe,props:Ze,setup(s){const a=s,o={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},l=M("progress"),d=C(()=>{const r={width:`${a.percentage}%`,animationDuration:`${a.duration}s`},$=L(a.percentage);return $.includes("gradient")?r.background=$:r.backgroundColor=$,r}),p=C(()=>(a.strokeWidth/a.width*100).toFixed(1)),f=C(()=>["circle","dashboard"].includes(a.type)?Number.parseInt(`${50-Number.parseFloat(p.value)/2}`,10):0),k=C(()=>{const r=f.value,$=a.type==="dashboard";return`
M 50 50
m 0 ${$?"":"-"}${r}
a ${r} ${r} 0 1 1 0 ${$?"-":""}${r*2}
a ${r} ${r} 0 1 1 0 ${$?"":"-"}${r*2}
`}),m=C(()=>2*Math.PI*f.value),y=C(()=>a.type==="dashboard"?.75:1),S=C(()=>`${-1*m.value*(1-y.value)/2}px`),g=C(()=>({strokeDasharray:`${m.value*y.value}px, ${m.value}px`,strokeDashoffset:S.value})),N=C(()=>({strokeDasharray:`${m.value*y.value*(a.percentage/100)}px, ${m.value}px`,strokeDashoffset:S.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),n=C(()=>{let r;return a.color?r=L(a.percentage):r=o[a.status]||o.default,r}),u=C(()=>a.status==="warning"?Be:a.type==="line"?a.status==="success"?ge:Oe:a.status==="success"?me:ye),t=C(()=>a.type==="line"?12+a.strokeWidth*.4:a.width*.111111+2),c=C(()=>a.format(a.percentage));function i(r){const $=100/r.length;return r.map((U,D)=>ae(U)?{color:U,percentage:(D+1)*$}:U).sort((U,D)=>U.percentage-D.percentage)}const L=r=>{var $;const{color:_}=a;if(he(_))return _(r);if(ae(_))return _;{const U=i(_);for(const D of U)if(D.percentage>r)return D.color;return($=U[U.length-1])==null?void 0:$.color}};return(r,$)=>(v(),E("div",{class:h([e(l).b(),e(l).m(r.type),e(l).is(r.status),{[e(l).m("without-text")]:!r.showText,[e(l).m("text-inside")]:r.textInside}]),role:"progressbar","aria-valuenow":r.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[r.type==="line"?(v(),E("div",{key:0,class:h(e(l).b("bar"))},[T("div",{class:h(e(l).be("bar","outer")),style:A({height:`${r.strokeWidth}px`})},[T("div",{class:h([e(l).be("bar","inner"),{[e(l).bem("bar","inner","indeterminate")]:r.indeterminate},{[e(l).bem("bar","inner","striped")]:r.striped},{[e(l).bem("bar","inner","striped-flow")]:r.stripedFlow}]),style:A(e(d))},[(r.showText||r.$slots.default)&&r.textInside?(v(),E("div",{key:0,class:h(e(l).be("bar","innerText"))},[P(r.$slots,"default",{percentage:r.percentage},()=>[T("span",null,V(e(c)),1)])],2)):w("v-if",!0)],6)],6)],2)):(v(),E("div",{key:1,class:h(e(l).b("circle")),style:A({height:`${r.width}px`,width:`${r.width}px`})},[(v(),E("svg",{viewBox:"0 0 100 100"},[T("path",{class:h(e(l).be("circle","track")),d:e(k),stroke:`var(${e(l).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":r.strokeLinecap,"stroke-width":e(p),fill:"none",style:A(e(g))},null,14,["d","stroke","stroke-linecap","stroke-width"]),T("path",{class:h(e(l).be("circle","path")),d:e(k),stroke:e(n),fill:"none",opacity:r.percentage?1:0,"stroke-linecap":r.strokeLinecap,"stroke-width":e(p),style:A(e(N))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(r.showText||r.$slots.default)&&!r.textInside?(v(),E("div",{key:2,class:h(e(l).e("text")),style:A({fontSize:`${e(t)}px`})},[P(r.$slots,"default",{percentage:r.percentage},()=>[r.status?(v(),O(e(q),{key:1},{default:R(()=>[(v(),O(Ne(e(u))))]),_:1})):(v(),E("span",{key:0},V(e(c)),1))])],6)):w("v-if",!0)],10,["aria-valuenow"]))}});var tt=W(et,[["__file","progress.vue"]]);const Ce=be(tt),Pe=Symbol("uploadContextKey"),st="ElUpload";class at extends Error{constructor(a,o,l,d){super(a),this.name="UploadAjaxError",this.status=o,this.method=l,this.url=d}}function de(s,a,o){let l;return o.response?l=`${o.response.error||o.response}`:o.responseText?l=`${o.responseText}`:l=`fail to ${a.method} ${s} ${o.status}`,new at(l,o.status,a.method,s)}function ot(s){const a=s.responseText||s.response;if(!a)return a;try{return JSON.parse(a)}catch{return a}}const nt=s=>{typeof XMLHttpRequest>"u"&&se(st,"XMLHttpRequest is undefined");const a=new XMLHttpRequest,o=s.action;a.upload&&a.upload.addEventListener("progress",p=>{const f=p;f.percent=p.total>0?p.loaded/p.total*100:0,s.onProgress(f)});const l=new FormData;if(s.data)for(const[p,f]of Object.entries(s.data))ke(f)&&f.length?l.append(p,...f):l.append(p,f);l.append(s.filename,s.file,s.file.name),a.addEventListener("error",()=>{s.onError(de(o,s,a))}),a.addEventListener("load",()=>{if(a.status<200||a.status>=300)return s.onError(de(o,s,a));s.onSuccess(ot(a))}),a.open(s.method,o,!0),s.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0);const d=s.headers||{};if(d instanceof Headers)d.forEach((p,f)=>a.setRequestHeader(f,p));else for(const[p,f]of Object.entries(d))$e(f)||a.setRequestHeader(p,String(f));return a.send(l),a},Fe=["text","picture","picture-card"];let rt=1;const te=()=>Date.now()+rt++,Re=z({action:{type:String,default:"#"},headers:{type:b(Object)},method:{type:String,default:"post"},data:{type:b([Object,Function,Promise]),default:()=>ee({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:b(Array),default:()=>ee([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Fe,default:"text"},httpRequest:{type:b(Function),default:nt},disabled:Boolean,limit:Number}),lt=z({...Re,beforeUpload:{type:b(Function),default:F},beforeRemove:{type:b(Function)},onRemove:{type:b(Function),default:F},onChange:{type:b(Function),default:F},onPreview:{type:b(Function),default:F},onSuccess:{type:b(Function),default:F},onProgress:{type:b(Function),default:F},onError:{type:b(Function),default:F},onExceed:{type:b(Function),default:F},crossorigin:{type:b(String)}}),it=z({files:{type:b(Array),default:()=>ee([])},disabled:{type:Boolean,default:!1},handlePreview:{type:b(Function),default:F},listType:{type:String,values:Fe,default:"text"},crossorigin:{type:b(String)}}),ut={remove:s=>!!s},dt=j({name:"ElUploadList"}),ct=j({...dt,props:it,emits:ut,setup(s,{emit:a}){const o=s,{t:l}=je(),d=M("upload"),p=M("icon"),f=M("list"),k=G(),m=H(!1),y=C(()=>[d.b("list"),d.bm("list",o.listType),d.is("disabled",o.disabled)]),S=g=>{a("remove",g)};return(g,N)=>(v(),O(Ie,{tag:"ul",class:h(e(y)),name:e(f).b()},{default:R(()=>[(v(!0),E(we,null,Ee(g.files,(n,u)=>(v(),E("li",{key:n.uid||n.name,class:h([e(d).be("list","item"),e(d).is(n.status),{focusing:m.value}]),tabindex:"0",onKeydown:Se(t=>!e(k)&&S(n),["delete"]),onFocus:t=>m.value=!0,onBlur:t=>m.value=!1,onClick:t=>m.value=!1},[P(g.$slots,"default",{file:n,index:u},()=>[g.listType==="picture"||n.status!=="uploading"&&g.listType==="picture-card"?(v(),E("img",{key:0,class:h(e(d).be("list","item-thumbnail")),src:n.url,crossorigin:g.crossorigin,alt:""},null,10,["src","crossorigin"])):w("v-if",!0),n.status==="uploading"||g.listType!=="picture-card"?(v(),E("div",{key:1,class:h(e(d).be("list","item-info"))},[T("a",{class:h(e(d).be("list","item-name")),onClick:K(t=>g.handlePreview(n),["prevent"])},[B(e(q),{class:h(e(p).m("document"))},{default:R(()=>[B(e(_e))]),_:1},8,["class"]),T("span",{class:h(e(d).be("list","item-file-name")),title:n.name},V(n.name),11,["title"])],10,["onClick"]),n.status==="uploading"?(v(),O(e(Ce),{key:0,type:g.listType==="picture-card"?"circle":"line","stroke-width":g.listType==="picture-card"?6:2,percentage:Number(n.percentage),style:A(g.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):w("v-if",!0)],2)):w("v-if",!0),T("label",{class:h(e(d).be("list","item-status-label"))},[g.listType==="text"?(v(),O(e(q),{key:0,class:h([e(p).m("upload-success"),e(p).m("circle-check")])},{default:R(()=>[B(e(ge))]),_:1},8,["class"])):["picture-card","picture"].includes(g.listType)?(v(),O(e(q),{key:1,class:h([e(p).m("upload-success"),e(p).m("check")])},{default:R(()=>[B(e(me))]),_:1},8,["class"])):w("v-if",!0)],2),e(k)?w("v-if",!0):(v(),O(e(q),{key:2,class:h(e(p).m("close")),onClick:t=>S(n)},{default:R(()=>[B(e(ye))]),_:2},1032,["class","onClick"])),w(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),w(" This is a bug which needs to be fixed "),w(" TODO: Fix the incorrect navigation interaction "),e(k)?w("v-if",!0):(v(),E("i",{key:3,class:h(e(p).m("close-tip"))},V(e(l)("el.upload.deleteTip")),3)),g.listType==="picture-card"?(v(),E("span",{key:4,class:h(e(d).be("list","item-actions"))},[T("span",{class:h(e(d).be("list","item-preview")),onClick:t=>g.handlePreview(n)},[B(e(q),{class:h(e(p).m("zoom-in"))},{default:R(()=>[B(e(Ae))]),_:1},8,["class"])],10,["onClick"]),e(k)?w("v-if",!0):(v(),E("span",{key:0,class:h(e(d).be("list","item-delete")),onClick:t=>S(n)},[B(e(q),{class:h(e(p).m("delete"))},{default:R(()=>[B(e(qe))]),_:1},8,["class"])],10,["onClick"]))],2)):w("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),P(g.$slots,"append")]),_:3},8,["class","name"]))}});var ce=W(ct,[["__file","upload-list.vue"]]);const pt=z({disabled:{type:Boolean,default:!1}}),ft={file:s=>ke(s)},Le="ElUploadDrag",vt=j({name:Le}),gt=j({...vt,props:pt,emits:ft,setup(s,{emit:a}){Me(Pe)||se(Le,"usage: <el-upload><el-upload-dragger /></el-upload>");const l=M("upload"),d=H(!1),p=G(),f=m=>{if(p.value)return;d.value=!1,m.stopPropagation();const y=Array.from(m.dataTransfer.files);a("file",y)},k=()=>{p.value||(d.value=!0)};return(m,y)=>(v(),E("div",{class:h([e(l).b("dragger"),e(l).is("dragover",d.value)]),onDrop:K(f,["prevent"]),onDragover:K(k,["prevent"]),onDragleave:K(S=>d.value=!1,["prevent"])},[P(m.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var mt=W(gt,[["__file","upload-dragger.vue"]]);const yt=z({...Re,beforeUpload:{type:b(Function),default:F},onRemove:{type:b(Function),default:F},onStart:{type:b(Function),default:F},onSuccess:{type:b(Function),default:F},onProgress:{type:b(Function),default:F},onError:{type:b(Function),default:F},onExceed:{type:b(Function),default:F}}),ht=j({name:"ElUploadContent",inheritAttrs:!1}),bt=j({...ht,props:yt,setup(s,{expose:a}){const o=s,l=M("upload"),d=G(),p=X({}),f=X(),k=t=>{if(t.length===0)return;const{autoUpload:c,limit:i,fileList:L,multiple:r,onStart:$,onExceed:_}=o;if(i&&L.length+t.length>i){_(t,L);return}r||(t=t.slice(0,1));for(const U of t){const D=U;D.uid=te(),$(D),c&&m(D)}},m=async t=>{if(f.value.value="",!o.beforeUpload)return S(t);let c,i={};try{const r=o.data,$=o.beforeUpload(t);i=oe(o.data)?ue(o.data):o.data,c=await $,oe(o.data)&&Ye(r,i)&&(i=ue(o.data))}catch{c=!1}if(c===!1){o.onRemove(t);return}let L=t;c instanceof Blob&&(c instanceof File?L=c:L=new File([c],t.name,{type:t.type})),S(Object.assign(L,{uid:t.uid}),i)},y=async(t,c)=>he(t)?t(c):t,S=async(t,c)=>{const{headers:i,data:L,method:r,withCredentials:$,name:_,action:U,onProgress:D,onSuccess:Ue,onError:Te,httpRequest:De}=o;try{c=await y(c??L,t)}catch{o.onRemove(t);return}const{uid:J}=t,Y={headers:i||{},withCredentials:$,file:t,data:c,method:r,filename:_,action:U,onProgress:I=>{D(I,t)},onSuccess:I=>{Ue(I,t),delete p.value[J]},onError:I=>{Te(I,t),delete p.value[J]}},Q=De(Y);p.value[J]=Q,Q instanceof Promise&&Q.then(Y.onSuccess,Y.onError)},g=t=>{const c=t.target.files;c&&k(Array.from(c))},N=()=>{d.value||(f.value.value="",f.value.click())},n=()=>{N()};return a({abort:t=>{Ke(p.value).filter(t?([i])=>String(t.uid)===i:()=>!0).forEach(([i,L])=>{L instanceof XMLHttpRequest&&L.abort(),delete p.value[i]})},upload:m}),(t,c)=>(v(),E("div",{class:h([e(l).b(),e(l).m(t.listType),e(l).is("drag",t.drag),e(l).is("disabled",e(d))]),tabindex:e(d)?"-1":"0",onClick:N,onKeydown:Se(K(n,["self"]),["enter","space"])},[t.drag?(v(),O(mt,{key:0,disabled:e(d),onFile:k},{default:R(()=>[P(t.$slots,"default")]),_:3},8,["disabled"])):P(t.$slots,"default",{key:1}),T("input",{ref_key:"inputRef",ref:f,class:h(e(l).e("input")),name:t.name,disabled:e(d),multiple:t.multiple,accept:t.accept,type:"file",onChange:g,onClick:K(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var pe=W(bt,[["__file","upload-content.vue"]]);const fe="ElUpload",ve=s=>{var a;(a=s.url)!=null&&a.startsWith("blob:")&&URL.revokeObjectURL(s.url)},kt=(s,a)=>{const o=ze(s,"fileList",void 0,{passive:!0}),l=n=>o.value.find(u=>u.uid===n.uid);function d(n){var u;(u=a.value)==null||u.abort(n)}function p(n=["ready","uploading","success","fail"]){o.value=o.value.filter(u=>!n.includes(u.status))}function f(n){o.value=o.value.filter(u=>u!==n)}const k=(n,u)=>{const t=l(u);t&&(console.error(n),t.status="fail",f(t),s.onError(n,t,o.value),s.onChange(t,o.value))},m=(n,u)=>{const t=l(u);t&&(s.onProgress(n,t,o.value),t.status="uploading",t.percentage=Math.round(n.percent))},y=(n,u)=>{const t=l(u);t&&(t.status="success",t.response=n,s.onSuccess(n,t,o.value),s.onChange(t,o.value))},S=n=>{$e(n.uid)&&(n.uid=te());const u={name:n.name,percentage:0,status:"ready",size:n.size,raw:n,uid:n.uid};if(s.listType==="picture-card"||s.listType==="picture")try{u.url=URL.createObjectURL(n)}catch(t){He(fe,t.message),s.onError(t,u,o.value)}o.value=[...o.value,u],s.onChange(u,o.value)},g=async n=>{const u=n instanceof File?l(n):n;u||se(fe,"file to be removed not found");const t=c=>{d(c),f(c),s.onRemove(c,o.value),ve(c)};s.beforeRemove?await s.beforeRemove(u,o.value)!==!1&&t(u):t(u)};function N(){o.value.filter(({status:n})=>n==="ready").forEach(({raw:n})=>{var u;return n&&((u=a.value)==null?void 0:u.upload(n))})}return ne(()=>s.listType,n=>{n!=="picture-card"&&n!=="picture"||(o.value=o.value.map(u=>{const{raw:t,url:c}=u;if(!c&&t)try{u.url=URL.createObjectURL(t)}catch(i){s.onError(i,u,o.value)}return u}))}),ne(o,n=>{for(const u of n)u.uid||(u.uid=te()),u.status||(u.status="success")},{immediate:!0,deep:!0}),{uploadFiles:o,abort:d,clearFiles:p,handleError:k,handleProgress:m,handleStart:S,handleSuccess:y,handleRemove:g,submit:N,revokeFileObjectURL:ve}},$t=j({name:"ElUpload"}),wt=j({...$t,props:lt,setup(s,{expose:a}){const o=s,l=G(),d=X(),{abort:p,submit:f,clearFiles:k,uploadFiles:m,handleStart:y,handleError:S,handleRemove:g,handleSuccess:N,handleProgress:n,revokeFileObjectURL:u}=kt(o,d),t=C(()=>o.listType==="picture-card"),c=C(()=>({...o,fileList:m.value,onStart:y,onProgress:n,onSuccess:N,onError:S,onRemove:g}));return Ve(()=>{m.value.forEach(u)}),We(Pe,{accept:Xe(o,"accept")}),a({abort:p,submit:f,clearFiles:k,handleStart:y,handleRemove:g}),(i,L)=>(v(),E("div",null,[e(t)&&i.showFileList?(v(),O(ce,{key:0,disabled:e(l),"list-type":i.listType,files:e(m),crossorigin:i.crossorigin,"handle-preview":i.onPreview,onRemove:e(g)},re({append:R(()=>[B(pe,le({ref_key:"uploadRef",ref:d},e(c)),{default:R(()=>[i.$slots.trigger?P(i.$slots,"trigger",{key:0}):w("v-if",!0),!i.$slots.trigger&&i.$slots.default?P(i.$slots,"default",{key:1}):w("v-if",!0)]),_:3},16)]),_:2},[i.$slots.file?{name:"default",fn:R(({file:r,index:$})=>[P(i.$slots,"file",{file:r,index:$})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):w("v-if",!0),!e(t)||e(t)&&!i.showFileList?(v(),O(pe,le({key:1,ref_key:"uploadRef",ref:d},e(c)),{default:R(()=>[i.$slots.trigger?P(i.$slots,"trigger",{key:0}):w("v-if",!0),!i.$slots.trigger&&i.$slots.default?P(i.$slots,"default",{key:1}):w("v-if",!0)]),_:3},16)):w("v-if",!0),i.$slots.trigger?P(i.$slots,"default",{key:2}):w("v-if",!0),P(i.$slots,"tip"),!e(t)&&i.showFileList?(v(),O(ce,{key:3,disabled:e(l),"list-type":i.listType,files:e(m),crossorigin:i.crossorigin,"handle-preview":i.onPreview,onRemove:e(g)},re({_:2},[i.$slots.file?{name:"default",fn:R(({file:r,index:$})=>[P(i.$slots,"file",{file:r,index:$})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):w("v-if",!0)]))}});var Et=W(wt,[["__file","upload.vue"]]);const St=be(Et),Ct=j({components:{},props:{type:{type:String,default:"image"},multiple:{type:Boolean,default:!0},limit:{type:Number,default:10},data:{type:Object,default:()=>({})},showProgress:{type:Boolean,default:!1}},emits:["change","error","success","allSuccess"],setup(s,{emit:a}){const o=Ge(),l=X(),d=H(`${Z.baseUrl}${Z.urlPrefix}/upload/${s.type}`),p=C(()=>({token:o.token,version:Z.version})),f=H(!1),k=H([]),m=()=>{f.value=!0};let y=0;const S=(t,c)=>{y++,y==k.value.length&&(y=0,k.value=[],a("allSuccess")),a("change",c),t.code==ie.SUCCESS&&a("success",t),t.code==ie.FAIL&&t.msg&&x.msgError(t.msg)},g=(t,c)=>{var i;y++,y==k.value.length&&(y=0,k.value=[],a("allSuccess")),x.msgError(`${c.name}文件上传失败`),(i=l.value)==null||i.abort(c),f.value=!1,a("change",c),a("error",c)},N=()=>{x.msgError(`超出上传上限${s.limit},请重新上传`)},n=()=>{k.value=[],f.value=!1},u=C(()=>{switch(s.type){case"image":return".jpg,.png,.gif,.jpeg,.ico";case"video":return".wmv,.avi,.mpg,.mpeg,.3gp,.mov,.mp4,.flv,.rmvb,.mkv";default:return"*"}});return{uploadRefs:l,action:d,headers:p,visible:f,fileList:k,getAccept:u,handleProgress:m,handleSuccess:S,handleError:g,handleExceed:N,handleClose:n}}}),Pt={class:"upload"},Ft={class:"file-list p-4"},Rt={class:"flex-1"};function Lt(s,a,o,l,d,p){const f=St,k=Ce,m=Qe;return v(),E("div",Pt,[B(f,{"file-list":s.fileList,"onUpdate:fileList":a[0]||(a[0]=y=>s.fileList=y),ref:"uploadRefs",action:s.action,multiple:s.multiple,limit:s.limit,"show-file-list":!1,headers:s.headers,data:s.data,"on-progress":s.handleProgress,"on-success":s.handleSuccess,"on-exceed":s.handleExceed,"on-error":s.handleError,accept:s.getAccept},{default:R(()=>[P(s.$slots,"default")]),_:3},8,["file-list","action","multiple","limit","headers","data","on-progress","on-success","on-exceed","on-error","accept"]),s.showProgress&&s.fileList.length?(v(),O(m,{key:0,modelValue:s.visible,"onUpdate:modelValue":a[1]||(a[1]=y=>s.visible=y),title:"上传进度","close-on-click-modal":!1,width:"500px",modal:!1,onClose:s.handleClose},{default:R(()=>[T("div",Ft,[(v(!0),E(we,null,Ee(s.fileList,(y,S)=>(v(),E("div",{key:S,class:"mb-5"},[T("div",null,V(y.name),1),T("div",Rt,[B(k,{percentage:parseInt(y.percentage)},null,8,["percentage"])])]))),128))])]),_:1},8,["modelValue","onClose"])):w("",!0)])}const Nt=Je(Ct,[["render",Lt]]);export{Nt as U};