import{d as h,M as x,z as p,o as r,x as n,w as l,f as e,a as _,a0 as v,g as C,t as T,y as u,I as q,j,G as z,J as I,K as P,_ as V,__tla as A}from"./index-8dc1e40a.js";import B,{__tla as D}from"./main-e0b1ced1.js";import{d as G,__tla as H}from"./formatTime-8a155b2e.js";let c,J=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return D}catch{}})(),(()=>{try{return H}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(K,M)=>{const a=q,o=j,s=z,w=I,g=x("hasPermi"),b=P;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(_(B),{key:0,url:t.row.url},null,8,["url"])):v("",!0)]),_:1}),e(a,{label:"\u4E0A\u4F20\u65F6\u95F4",align:"center",formatter:_(G),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{J as __tla,c as default};
