ImageTable-f9f3d3a9.js 1.1 KB

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