import{d as h,S as x,y as p,o as r,x as n,w as t,g as e,a as _,R as v,h as C,t as T,q as c,H as q,k as z,D,I,J as P,_ as V,__tla as j}from"./index-7d5b26d3.js";import A,{__tla as B}from"./main-0e4d12b4.js";import{d as H,__tla as J}from"./formatTime-5152c108.js";let m,R=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return J}catch{}})()]).then(async()=>{m=V(h({__name:"VideoTable",props:{list:{type:Array,required:!0},loading:{type:Boolean,required:!0}},emits:["delete","download"],setup(u,{emit:f}){const i=u,y=f;return(S,E)=>{const a=q,o=z,s=D,g=I,w=x("hasPermi"),b=P;return p((r(),n(g,{data:i.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(),n(_(A),{key:0,url:l.row.url},null,8,["url"])):v("",!0)]),_:1}),e(a,{label:"\u4E0A\u4F20\u65F6\u95F4",align:"center",formatter:_(H),prop:"createTime",width:"180"},{default:t(l=>[C("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"}),c("\u4E0B\u8F7D ")]),_:2},1032,["onClick"]),p((r(),n(s,{type:"primary",link:"",onClick:k=>y("delete",l.row.id)},{default:t(()=>[e(o,{icon:"ep:delete"}),c("\u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["mp:material:delete"]]])]),_:1})]),_:1},8,["data"])),[[b,i.loading]])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mp/material/components/VideoTable.vue"]])});export{R as __tla,m as default};
