2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
import{k as Me,b as Ne,U as We,L as Ge,V as Ye,E as qe,W as Ke,p as Qe,q as Ze,r as Oe,w as Je,M as Xe,N as He,B as et,a as tt,F as lt,O as nt,P as at,Q as ot}from"./element-plus.9c2fdfa8.js";import{_ as st}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{_ as it}from"./index.b370dd86.js";import{r as I,f as Ae,d as xe,b as Se,i as ut}from"./index.b57b84f0.js";import{P as dt}from"./index.3fc23cf2.js";import{U as ct}from"./index.06c1697f.js";import{_ as rt}from"./index.vue_vue_type_script_setup_true_lang.aa03e8e3.js";import{s as O,r as B,$ as Ve,d as J,o as s,c as f,a as o,K as D,Q as v,U as n,H as ft,_ as De,I as mt,u as e,e as Be,w as Q,M as Z,V as de,L as a,k as P,n as be,a3 as pt,C as _t,j as vt,R as _,Z as q,T as $,a7 as K,a8 as ht,O as Fe,S as ie,bf as gt,be as yt}from"./@vue.53f8d7c3.js";import{u as Ct}from"./usePaging.c22e2b6f.js";import{g as kt}from"./vue3-video-play.65ddc377.js";const Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAACJElEQVRYR+2YMWsUURSFz3m7s+nskjUIQSutbMRi7WzUVjSadMHCbVLkByjmLygaCVYWRqMEUhkFS9Gg0cJfYCPZjYUQFbPs+I7c2R1Q2ZjZfRNYYS4MAzPv3vnmvDvL3kMA2Hl5/CjLI9ckf4ZwY3Zt15C+gfwIao3So0rt3XsJtPUk9M/cAW6y9ap2DIyfAjgCwANwGeoYiEFtk/5e5CvXeer1D2neATcGgiTZM4+t9RNLEKcBtAFEGeBsiRWzl7EoSXo+8rV9gWc/fDc1B1VSEoEnDpj0KTB33tS26DGaEezvZQZpRxmODyoT5+vwBwS3zeTcT4yjTdZNJEiPSykk1bjZX6HeD/WQJ1zUApgq2w+etcsniBuAVlH9vELOx6Yo1VywgkmTB4X1kEGGhyAtg/Ecq3NNqnknDwVTrNBaactEts88OHs5b8Bw/Tof4M+kr4WrwwhoL9n5uRPWhxWwsxPEl+EGNMacP5I8evCPGgVgqKSFgoWCoQqE5hc9WCgYqkBoftGDeSiYz1/+UJLe+foftvh2A2B1fwQIrapkaFoDcK4PVyH0qVnyU4fjGdW4NQ2WlgDE5hLkMoJmQdh9zW9Dk59K5lhtLjyE01TX/jDILP5MGEbvbFPOJroIXvc5PjvTBbx7GM4vAjjd9WdSc2g/IPaqaTv5Aq58haP1TSb2Au20GGErvgTxIqiTAA7tVSnn+2Z9vAXdCsa4bD6Nsf0C/gYA5PMzcW0AAAAASUVORK5CYII=";function wt(l){return I.post({url:"/file/addCate",params:l})}function bt(l){return I.post({url:"/file/editCate",params:l})}function Ft(l){return I.post({url:"/file/delCate",params:l})}function At(l){return I.get({url:"/file/listCate",params:l})}function xt(l){return I.get({url:"/file/lists",params:l})}function St(l){return I.post({url:"/file/delete",params:l})}function Vt(l){return I.post({url:"/file/move",params:l})}function Dt(l){return I.post({url:"/file/rename",params:l})}function Bt(l){const x=O(),g=B([]),p=B(""),h=async()=>{const i=await At({page_type:0,type:l}),w=[{name:"\u5168\u90E8",id:""},{name:"\u672A\u5206\u7EC4",id:0}];g.value=i.lists,g.value.unshift(...w),setTimeout(()=>{var c;(c=x.value)==null||c.setCurrentKey(p.value)},0)};return{treeRef:x,cateId:p,cateLists:g,handleAddCate:async i=>{await wt({type:l,name:i,pid:0}),h()},handleEditCate:async(i,w)=>{await bt({id:w,name:i}),h()},handleDeleteCate:async i=>{await Ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Ft({id:i}),p.value="",h()},getCateLists:h,handleCatSelect:i=>{p.value=i.id}}}function Rt(l,x,g,p){const h=O(),E=B("normal"),y=B(0),u=B([]),F=B(!1),i=B(!1),w=Ve({name:"",type:x,cid:l}),{pager:c,getLists:R,resetPage:U}=Ct({fetchFun:xt,params:w,firstLoading:!0,size:p}),T=()=>{R()},H=()=>{U()},ee=d=>!!u.value.find(m=>m.id==d),te=async d=>{await Ae.confirm("\u786E\u8BA4\u5220\u9664\u540E\uFF0C\u672C\u5730\u6216\u4E91\u5B58\u50A8\u6587\u4EF6\u4E5F\u5C06\u540C\u6B65\u5220\u9664\uFF0C\u5982\u6587\u4EF6\u5DF2\u88AB\u4F7F\u7528\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01");const m=d||u.value.map(L=>L.id);await St({ids:m}),T(),S()},le=async()=>{const d=u.value.map(m=>m.id);await Vt({ids:d,cid:y.value}),y.value=0,T(),S()},z=d=>{const m=u.value.findIndex(L=>L.id==d.id);if(m!=-1){u.value.splice(m,1);return}if(u.value.length==g.value){if(g.value==1){u.value=[],u.value.push(d);return}Me.warning("\u5DF2\u8FBE\u5230\u9009\u62E9\u4E0A\u9650");return}u.value.push(d)},S=()=>{u.value=[]};return{listShowType:E,tableRef:h,moveId:y,pager:c,fileParams:w,select:u,isCheckAll:F,isIndeterminate:i,getFileList:T,refresh:H,batchFileDelete:te,batchFileMove:le,selectFile:z,isSelect:ee,clearSelect:S,cancelSelete:d=>{u.value=u.value.filter(m=>m.id!=d)},selectAll:d=>{var m;if(i.value=!1,(m=h.value)==null||m.toggleAllSelection(),d){u.value=[...c.lists];return}S()},handleFileRename:async(d,m)=>{await Dt({id:m,name:d}),T()}}}const zt=J({props:{uri:{type:String},fileSize:{type:String,default:"100px"},type:{type:String,default:"image"}},emits:["close"]});const It=["src"],$t={key:2,class:"absolute left-1/2 top-1/2 translate-x-[-50%] translate-y-[-50%] rounded-full w-5 h-5 flex justify-center items-center bg-[rgba(0,0,0,0.3)]"};function Pt(l,x,g,p,h,E){const y=Ne,u=Se;return s(),f("div",null,[o("div",{class:"file-item relative",style:De({height:l.fileSize,width:l.fileSize})},[l.type=="image"?(s(),D(y,{key:0,class:"image",fit:"contain",src:l.uri},null,8,["src"])):l.type=="video"?(s(),f("video",{key:1,class:"video",src:l.uri},null,8,It)):v("",!0),l.type=="video"?(s(),f("div",$t,[n(u,{name:"el-icon-CaretRight",size:18,color:"#fff"})])):v("",!0),ft(l.$slots,"default",{},void 0,!0)],4)])}const ue=xe(zt,[["render",Pt],["__scopeId","data-v-5ccc0f84"]]),Tt=J({__name:"index",props:{src:{type:String,required:!0},width:String,height:String,poster:String},setup(l,{expose:x}){const g=l,p=O(),h=Ve({color:"var(--el-color-primary)",muted:!1,webFullScreen:!1,speedRate:["0.75","1.0","1.25","1.5","2.0"],autoPlay:!0,loop:!1,mirror:!1,ligthOff:!1,volume:.3,control:!0,title:"",poster:"",...g}),E=()=>{p.value.play()},y=()=>{p.value.pause()},u=c=>{console.log(c,"\u64AD\u653E")},F=c=>{console.log(c,"\u6682\u505C")},i=c=>{console.log(c,"\u65F6\u95F4\u66F4\u65B0")},w=c=>{console.log(c,"\u53EF\u4EE5\u64AD\u653E")};return x({play:E,pause:y}),(c,R)=>(s(),f("div",null,[n(e(kt),mt({ref_key:"playerRef",ref:p},h,{src:l.src,onPlay:u,onPause:F,onTimeupdate:i,onCanplay:w}),null,16,["src"])]))}}),Lt={key:0},Ut={key:1},jt=J({__name:"preview",props:{modelValue:{type:Boolean,default:!1},url:{type:String,default:""},type:{type:String,default:"image"}},emits:["update:modelValue"],setup(l,{emit:x}){const g=l,p=x,h=O(),E=Be({get(){return g.modelValue},set(F){p("update:modelValue",F)}}),y=()=>{p("update:modelValue",!1)},u=B([]);return Q(()=>g.modelValue,F=>{F?be(()=>{var i;u.value=[g.url],(i=h.value)==null||i.play()}):be(()=>{var i;u.value=[],(i=h.value)==null||i.pause()})}),(F,i)=>{const w=We,c=Tt,R=Ge;return Z((s(),f("div",null,[l.type=="image"?(s(),f("div",Lt,[e(u).length?(s(),D(w,{key:0,"url-list":e(u),"hide-on-click-modal":"",onClose:y},null,8,["url-list"])):v("",!0)])):v("",!0),l.type=="video"?(s(),f("div",Ut,[n(R,{modelValue:e(E),"onUpdate:modelValue":i[0]||(i[0]=U=>P(E)?E.value=U:null),width:"740px",title:"\u89C6\u9891\u9884\u89C8","before-close":y},{default:a(()=>[n(c,{ref_key:"playerRef",ref:h,src:l.url,width:"100%",height:"450px"},null,8,["src"])]),_:1},8,["modelValue"])])):v("",!0)],512)),[[de,l.modelValue]])}}}),X=l=>(gt("data-v-9cc1892d"),l=l(),yt(),l),Mt={class:"material"},Nt={class:"material__left"},Wt={class:"flex-1 min-h-0"},Gt={class:"material-left__content pt-4 p-b-4"},Yt={class:"flex flex-1 items-center min-w-0 pr-4"},qt=X(()=>o("img",{class:"w-[20px] h-[16px] mr-3",src:Et},null,-1)),Kt={class:"flex-1 truncate mr-2"},Qt=X(()=>o("span",{class:"muted m-r-10"},"\xB7\xB7\xB7",-1)),Zt=["onClick"],Ot={class:"flex justify-center p-2 border-t border-br"},Jt={class:"material__center flex flex-col"},Xt={class:"operate-btn flex"},Ht={class:"flex-1 flex"},el=X(()=>o("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),tl={class:"flex items-center ml-2"},ll={key:0,class:"mt-3"},nl={class:"material-center__content flex flex-col flex-1 mb-1 min-h-0"},al={class:"file-list flex flex-wrap mt-4"},ol={key:0,class:"item-selected"},sl={class:"operation-btns flex items-center"},il={class:"inline-block"},ul={class:"inline-block"},dl={class:"inline-block"},cl={key:1,class:"flex flex-1 justify-center items-center"},rl={class:"material-center__footer flex justify-between items-center mt-2"},fl={class:"flex"},ml={class:"mr-3"},pl=X(()=>o("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),_l={key:0,class:"material__right"},vl={class:"flex justify-between p-2 flex-wrap"},hl={class:"sm flex items-center"},gl={key:0},yl={class:"flex-1 min-h-0"},Cl={class:"select-lists flex flex-col p-t-3"},kl={class:"select-item"},El=J({__name:"index",props:{fileSize:{type:String,default:"100px"},limit:{type:Number,default:1},type:{type:String,default:"image"},mode:{type:String,default:"picker"},pageSize:{type:Number,default:15}},emits:["change"],setup(l,{expose:x,emit:g}){const p=l,h=g,{limit:E}=pt(p),y=Be(()=>{switch(p.type){case"image":return 10;case"video":return 20;case"file":return 30;default:return 0}}),u=_t("visible"),F=B(""),i=B(!1),{treeRef:w,cateId:c,cateLists:R,handleAddCate:U,handleEditCate:T,handleDeleteCate:H,getCateLists:ee,handleCatSelect:te}=Bt(y.value),{tableRef:le,listShowType:z,moveId:S,pager:b,fileParams:N,select:V,isCheckAll:d,isIndeterminate:m,getFileList:L,refresh:j,batchFileDelete:W,batchFileMove:ce,selectFile:ne,isSelect:re,clearSelect:fe,cancelSelete:Re,selectAll:me,handleFileRename:pe}=Rt(c,y,E,p.pageSize),_e=async()=>{var A;await ee(),(A=w.value)==null||A.setCurrentKey(c.value),L()},ae=A=>{F.value=A,i.value=!0};return Q(u,async A=>{A&&_e()},{immediate:!0}),Q(c,()=>{N.name="",j()}),Q(V,A=>{if(h("change",A),A.length==b.lists.length&&A.length!==0){m.value=!1,d.value=!0;return}A.length>0?m.value=!0:(d.value=!1,m.value=!1)},{deep:!0}),vt(()=>{p.mode=="page"&&_e()}),x({clearSelect:fe}),(A,r)=>{const ve=ut,he=Qe,G=rt,ze=Ze,Ie=Oe,$e=Ye,oe=qe,C=Je,ge=ct,ye=Xe,Ce=He,ke=dt,Y=Se,Pe=et,Ee=tt,se=lt,we=it,M=nt,Te=Ke,Le=at,Ue=st,je=ot;return Z((s(),f("div",Mt,[o("div",Nt,[o("div",Wt,[n(oe,null,{default:a(()=>[o("div",Gt,[n($e,{ref_key:"treeRef",ref:w,"node-key":"id",data:e(R),"empty-text":"''","highlight-current":!0,"expand-on-click-node":!1,"current-node-key":e(c),onNodeClick:e(te)},{default:a(({data:t})=>[o("div",Yt,[qt,o("span",Kt,[n(ve,{content:t.name},null,8,["content"])]),t.id>0?(s(),D(Ie,{key:0,"hide-on-click":!1},{dropdown:a(()=>[n(ze,null,{default:a(()=>[n(G,{onConfirm:k=>e(T)(k,t.id),size:"default",value:t.name,width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[o("div",null,[n(he,null,{default:a(()=>[_(" \u547D\u540D\u5206\u7EC4 ")]),_:1})])]),_:2},1032,["onConfirm","value"]),o("div",{onClick:k=>e(H)(t.id)},[n(he,null,{default:a(()=>[_("\u5220\u9664\u5206\u7EC4")]),_:1})],8,Zt)]),_:2},1024)]),default:a(()=>[Qt]),_:2},1024)):v("",!0)])]),_:1},8,["data","current-node-key","onNodeClick"])])]),_:1})]),o("div",Ot,[n(G,{onConfirm:e(U),size:"default",width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[n(C,null,{default:a(()=>[_(" \u6DFB\u52A0\u5206\u7EC4 ")]),_:1})]),_:1},8,["onConfirm"])])]),o("div",Jt,[o("div",Xt,[o("div",Ht,[l.type=="image"?(s(),D(ge,{key:0,class:"mr-3",data:{cid:e(c)},type:l.type,"show-progress":!0,onChange:e(j)},{default:a(()=>[n(C,{type:"primary"},{default:a(()=>[_("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):v("",!0),l.type=="video"?(s(),D(ge,{key:1,class:"mr-3",data:{cid:e(c)},type:l.type,"show-progress":!0,onChange:e(j)},{default:a(()=>[n(C,{type:"primary"},{default:a(()=>[_("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):v("",!0),l.mode=="page"?(s(),D(C,{key:2,disabled:!e(V).length,onClick:r[0]||(r[0]=q(t=>e(W)(),["stop"]))},{default:a(()=>[_(" \u5220\u9664 ")]),_:1},8,["disabled"])):v("",!0),l.mode=="page"?(s(),D(ke,{key:3,class:"ml-3",onConfirm:e(ce),disabled:!e(V).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(C,{disabled:!e(V).length},{default:a(()=>[_("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[o("div",null,[el,n(Ce,{modelValue:e(S),"onUpdate:modelValue":r[1]||(r[1]=t=>P(S)?S.value=t:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(s(!0),f($,null,K(e(R),t=>(s(),f($,{key:t.id},[t.id!==""?(s(),D(ye,{key:0,label:t.name,value:t.id},null,8,["label","value"])):v("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])):v("",!0)]),n(Pe,{class:"w-60",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",modelValue:e(N).name,"onUpdate:modelValue":r[2]||(r[2]=t=>e(N).name=t),onKeyup:ht(e(j),["enter"])},{append:a(()=>[n(C,{onClick:e(j)},{icon:a(()=>[n(Y,{name:"el-icon-Search"})]),_:1},8,["onClick"])]),_:1},8,["modelValue","onKeyup"]),o("div",tl,[n(Ee,{content:"\u5217\u8868\u89C6\u56FE",placement:"top"},{default:a(()=>[o("div",{class:Fe(["list-icon",{select:e(z)=="table"}]),onClick:r[3]||(r[3]=t=>z.value="table")},[n(Y,{name:"local-icon-list-2",size:18})],2)]),_:1}),n(Ee,{content:"\u5E73\u94FA\u89C6\u56FE",placement:"top"},{default:a(()=>[o("div",{class:Fe(["list-icon",{select:e(z)=="normal"}]),onClick:r[4]||(r[4]=t=>z.value="normal")},[n(Y,{name:"el-icon-Menu",size:18})],2)]),_:1})])]),l.mode=="page"?(s(),f("div",ll,[n(se,{disabled:!e(b).lists.length,modelValue:e(d),"onUpdate:modelValue":r[5]||(r[5]=t=>P(d)?d.value=t:null),onChange:e(me),indeterminate:e(m)},{default:a(()=>[_(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])])):v("",!0),o("div",nl,[e(b).lists.length?Z((s(),D(oe,{key:0},{default:a(()=>[o("ul",al,[(s(!0),f($,null,K(e(b).lists,t=>(s(),f("li",{class:"file-item-wrap",key:t.id,style:De({width:l.fileSize})},[n(we,{onClose:k=>e(W)([t.id])},{default:a(()=>[n(ue,{uri:t.uri,"file-size":l.fileSize,type:l.type,onClick:k=>e(ne)(t)},{default:a(()=>[e(re)(t.id)?(s(),f("div",ol,[n(Y,{size:24,name:"el-icon-Check",color:"#fff"})])):v("",!0)]),_:2},1032,["uri","file-size","type","onClick"])]),_:2},1032,["onClose"]),n(ve,{class:"mt-1",content:t.name},null,8,["content"]),o("div",sl,[n(G,{onConfirm:k=>e(pe)(k,t.id),size:"default",value:t.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(C,{type:"primary",link:""},{default:a(()=>[_(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"]),n(C,{type:"primary",link:"",onClick:k=>ae(t.uri)},{default:a(()=>[_(" \u67E5\u770B ")]),_:2},1032,["onClick"])])],4))),128))])]),_:1},512)),[[de,e(z)=="normal"]]):v("",!0),Z(n(Le,{ref_key:"tableRef",ref:le,class:"mt-4",data:e(b).lists,width:"100%",height:"100%",size:"large",onRowClick:e(ne)},{default:a(()=>[n(M,{width:"55"},{default:a(({row:t})=>[n(se,{modelValue:e(re)(t.id),onChange:k=>e(ne)(t)},null,8,["modelValue","onChange"])]),_:1}),n(M,{label:"\u56FE\u7247",width:"100"},{default:a(({row:t})=>[n(ue,{uri:t.uri,"file-size":"50px",type:l.type},null,8,["uri","type"])]),_:1}),n(M,{label:"\u540D\u79F0","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[n(Te,{onClick:q(k=>ae(t.uri),["stop"]),underline:!1},{default:a(()=>[_(ie(t.name),1)]),_:2},1032,["onClick"])]),_:1}),n(M,{prop:"create_time",label:"\u4E0A\u4F20\u65F6\u95F4","min-width":"100"}),n(M,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:t})=>[o("div",il,[n(G,{onConfirm:k=>e(pe)(k,t.id),size:"default",value:t.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(C,{type:"primary",link:""},{default:a(()=>[_(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"])]),o("div",ul,[n(C,{type:"primary",link:"",onClick:q(k=>ae(t.uri),["stop"])},{default:a(()=>[_(" \u67E5\u770B ")]),_:2},1032,["onClick"])]),o("div",dl,[n(C,{type:"primary",link:"",onClick:q(k=>e(W)([t.id]),["stop"])},{default:a(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data","onRowClick"]),[[de,e(z)=="table"]]),!e(b).loading&&!e(b).lists.length?(s(),f("div",cl," \u6682\u65E0\u6570\u636E~ ")):v("",!0)]),o("div",rl,[o("div",fl,[l.mode=="page"?(s(),f($,{key:0},[o("span",ml,[n(se,{disabled:!e(b).lists.length,modelValue:e(d),"onUpdate:modelValue":r[6]||(r[6]=t=>P(d)?d.value=t:null),onChange:e(me),indeterminate:e(m)},{default:a(()=>[_(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])]),n(C,{disabled:!e(V).length,onClick:r[7]||(r[7]=t=>e(W)())},{default:a(()=>[_(" \u5220\u9664 ")]),_:1},8,["disabled"]),n(ke,{class:"ml-3 inline",onConfirm:e(ce),disabled:!e(V).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(C,{disabled:!e(V).length},{default:a(()=>[_("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[o("div",null,[pl,n(Ce,{modelValue:e(S),"onUpdate:modelValue":r[8]||(r[8]=t=>P(S)?S.value=t:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(s(!0),f($,null,K(e(R),t=>(s(),f($,{key:t.id},[t.id!==""?(s(),D(ye,{key:0,label:t.name,value:t.id},null,8,["label","value"])):v("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])],64)):v("",!0)]),n(Ue,{modelValue:e(b),"onUpdate:modelValue":r[9]||(r[9]=t=>P(b)?b.value=t:null),onChange:e(L),layout:"total, prev, pager, next, jumper"},null,8,["modelValue","onChange"])])]),l.mode=="picker"?(s(),f("div",_l,[o("div",vl,[o("div",hl,[_(" \u5DF2\u9009\u62E9 "+ie(e(V).length)+" ",1),e(E)?(s(),f("span",gl,"/"+ie(e(E)),1)):v("",!0)]),n(C,{type:"primary",link:"",onClick:e(fe)},{default:a(()=>[_("\u6E05\u7A7A")]),_:1},8,["onClick"])]),o("div",yl,[n(oe,{class:"ls-scrollbar"},{default:a(()=>[o("ul",Cl,[(s(!0),f($,null,K(e(V),t=>(s(),f("li",{class:"mb-4",key:t.id},[o("div",kl,[n(we,{onClose:k=>e(Re)(t.id)},{default:a(()=>[n(ue,{uri:t.uri,"file-size":"100px",type:l.type},null,8,["uri","type"])]),_:2},1032,["onClose"])])]))),128))])]),_:1})])])):v("",!0),n(jt,{modelValue:e(i),"onUpdate:modelValue":r[10]||(r[10]=t=>P(i)?i.value=t:null),url:e(F),type:l.type},null,8,["modelValue","url","type"])])),[[je,e(b).loading]])}}});const zl=xe(El,[["__scopeId","data-v-9cc1892d"]]);export{ue as F,zl as _,jt as a};
|