import{d as h,P as v,C as p,o as r,l as i,w as t,i as e,a as _,a2 as C,g as P,t as T,j as u,L as x,v as j,J as q,M as A,N as V,_ as B,__tla as E}from"./index-2c56227b.js";import G,{__tla as H}from"./main-06d64462.js";import{d as I,__tla as J}from"./formatTime-7f0ec2bf.js";let c,L=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return J}catch{}})()]).then(async()=>{c=B(h({__name:"VideoTable",props:{list:{type:Array,required:!0},loading:{type:Boolean,required:!0}},emits:["delete","download"],setup(m,{emit:f}){const n=m,y=f;return(M,N)=>{const a=x,o=j,s=q,g=A,w=v("hasPermi"),b=V;return p((r(),i(g,{data:n.list,stripe:"",border:"",style:{"margin-top":"10px"}},{default:t(()=>[e(a,{label:"\u7F16\u53F7",align:"center",prop:"mediaId"}),e(a,{label:"\u6587\u4EF6\u540D",align:"center",prop:"name"}),e(a,{label:"\u6807\u9898",align:"center",prop:"title"}),e(a,{label:"\u4ECB\u7ECD",align:"center",prop:"introduction"}),e(a,{label:"\u89C6\u9891",align:"center"},{default:t(l=>[l.row.url?(r(),i(_(G),{key:0,url:l.row.url},null,8,["url"])):C("",!0)]),_:1}),e(a,{label:"\u4E0A\u4F20\u65F6\u95F4",align:"center",formatter:_(I),prop:"createTime",width:"180"},{default:t(l=>[P("span",null,T(l.row.createTime),1)]),_:1},8,["formatter"]),e(a,{label:"\u64CD\u4F5C",align:"center",fixed:"right"},{default:t(l=>[e(s,{type:"primary",link:"",onClick:k=>{return d=l.row.url,void window.open(d,"_blank");var d}},{default:t(()=>[e(o,{icon:"ep:download"}),u("\u4E0B\u8F7D ")]),_:2},1032,["onClick"]),p((r(),i(s,{type:"primary",link:"",onClick:k=>y("delete",l.row.id)},{default:t(()=>[e(o,{icon:"ep:delete"}),u("\u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["mp:material:delete"]]])]),_:1})]),_:1},8,["data"])),[[b,n.loading]])}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/mp/material/components/VideoTable.vue"]])});export{L as __tla,c as default};
