import{d as h,a3 as C,k as p,o as r,A as n,B as l,f as a,a as _,D as x,C as T,G as v,E as c,X as A,_ as B,K as P,Y as j,Z as D,__tla as E}from"./index-92ad187a.js";import{_ as G,__tla as I}from"./main.vue_vue_type_script_setup_true_lang-a8330ef1.js";import{d as K,__tla as V}from"./formatTime-c7f253d6.js";let m,X=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return V}catch{}})()]).then(async()=>{m=h({__name:"VideoTable",props:{list:{},loading:{type:Boolean}},emits:["delete","download"],setup(u,{emit:f}){const o=u,g=f;return(Y,Z)=>{const e=A,i=B,s=P,y=j,b=C("hasPermi"),k=D;return p((r(),n(y,{data:o.list,stripe:"",border:"",style:{"margin-top":"10px"}},{default:l(()=>[a(e,{label:"\u7F16\u53F7",align:"center",prop:"mediaId"}),a(e,{label:"\u6587\u4EF6\u540D",align:"center",prop:"name"}),a(e,{label:"\u6807\u9898",align:"center",prop:"title"}),a(e,{label:"\u4ECB\u7ECD",align:"center",prop:"introduction"}),a(e,{label:"\u89C6\u9891",align:"center"},{default:l(t=>[t.row.url?(r(),n(_(G),{key:0,url:t.row.url},null,8,["url"])):x("",!0)]),_:1}),a(e,{label:"\u4E0A\u4F20\u65F6\u95F4",align:"center",formatter:_(K),prop:"createTime",width:"180"},{default:l(t=>[T("span",null,v(t.row.createTime),1)]),_:1},8,["formatter"]),a(e,{label:"\u64CD\u4F5C",align:"center",fixed:"right"},{default:l(t=>[a(s,{type:"primary",link:"",onClick:w=>{return d=t.row.url,void window.open(d,"_blank");var d}},{default:l(()=>[a(i,{icon:"ep:download"}),c("\u4E0B\u8F7D ")]),_:2},1032,["onClick"]),p((r(),n(s,{type:"primary",link:"",onClick:w=>g("delete",t.row.id)},{default:l(()=>[a(i,{icon:"ep:delete"}),c("\u5220\u9664 ")]),_:2},1032,["onClick"])),[[b,["mp:material:delete"]]])]),_:1})]),_:1},8,["data"])),[[k,o.loading]])}}})});export{m as _,X as __tla};
