ImageTable-785e67fa.js 1.1 KB

1
  1. import{d as w,P as b,C as d,o as a,c as s,F as C,k as I,g as l,t as q,i as c,w as o,l as x,v as P,J as j,s as T,N as z,_ as A,__tla as B}from"./index-b2b3c6c4.js";let u,D=Promise.all([(()=>{try{return B}catch{}})()]).then(async()=>{let t,r,i,n;t={class:"waterfall"},r=["href"],i=["src"],n={class:"item-name"},u=A(w({__name:"ImageTable",props:{list:{type:Array,required:!0},loading:{type:Boolean,required:!0}},emits:["delete"],setup(_,{emit:p}){const m=_,f=p;return(F,H)=>{const g=P,y=j,v=T,k=b("hasPermi"),h=z;return d((a(),s("div",t,[(a(!0),s(C,null,I(m.list,e=>(a(),s("div",{class:"waterfall-item",key:e.id},[l("a",{target:"_blank",href:e.url},[l("img",{class:"material-img",src:e.url},null,8,i),l("div",n,q(e.name),1)],8,r),c(v,{justify:"center"},{default:o(()=>[d((a(),x(y,{type:"danger",circle:"",onClick:J=>f("delete",e.id)},{default:o(()=>[c(g,{icon:"ep:delete"})]),_:2},1032,["onClick"])),[[k,["mp:material:delete"]]])]),_:2},1024)]))),128))])),[[h,m.loading]])}}}),[["__scopeId","data-v-909ef7d4"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/material/components/ImageTable.vue"]])});export{D as __tla,u as default};