import{d as h,Q as v,x as p,o as r,v as n,w as l,f as e,a as _,P as x,g as C,t as T,n as u,G as q,j as P,C as j,H,I,_ as V,__tla as z}from"./index-11e4820e.js";import A,{__tla as B}from"./main-12949ceb.js";import{d as D,__tla as G}from"./formatTime-f6a2c881.js";let c,Q=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return G}catch{}})()]).then(async()=>{c=V(h({__name:"VideoTable",props:{list:{type:Array,required:!0},loading:{type:Boolean,required:!0}},emits:["delete","download"],setup(m,{emit:f}){const i=m,y=f;return(R,U)=>{const a=q,o=P,s=j,w=H,g=v("hasPermi"),b=I;return p((r(),n(w,{data:i.list,stripe:"",border:"",style:{"margin-top":"10px"}},{default:l(()=>[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:l(t=>[t.row.url?(r(),n(_(A),{key:0,url:t.row.url},null,8,["url"])):x("",!0)]),_:1}),e(a,{label:"\u4E0A\u4F20\u65F6\u95F4",align:"center",formatter:_(D),prop:"createTime",width:"180"},{default:l(t=>[C("span",null,T(t.row.createTime),1)]),_:1},8,["formatter"]),e(a,{label:"\u64CD\u4F5C",align:"center",fixed:"right"},{default:l(t=>[e(s,{type:"primary",link:"",onClick:k=>{return d=t.row.url,void window.open(d,"_blank");var d}},{default:l(()=>[e(o,{icon:"ep:download"}),u("\u4E0B\u8F7D ")]),_:2},1032,["onClick"]),p((r(),n(s,{type:"primary",link:"",onClick:k=>y("delete",t.row.id)},{default:l(()=>[e(o,{icon:"ep:delete"}),u("\u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["mp:material:delete"]]])]),_:1})]),_:1},8,["data"])),[[b,i.loading]])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/material/components/VideoTable.vue"]])});export{Q as __tla,c as default};