import{d as w,P as b,C as l,o as t,c as r,F as f,k as I,i as e,a as P,w as s,l as _,a2 as g,v as q,J as A,s as D,N as T,_ as j,__tla as x}from"./index-2c56227b.js";import B,{__tla as E}from"./main-9a47ac8b.js";import{__tla as F}from"./el-image-cae97e2e.js";import{__tla as G}from"./el-image-viewer-da1b6008.js";let y,H=Promise.all([(()=>{try{return x}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return G}catch{}})()]).then(async()=>{let d,u;d={class:"waterfall"},u={key:0,class:"waterfall-item"},y=j(w({__name:"DraftTable",props:{list:{type:Array,required:!0},loading:{type:Boolean,required:!0}},emits:["publish","update","delete"],setup(h,{emit:k}){const p=h,i=k;return(J,N)=>{const n=q,c=A,C=D,o=b("hasPermi"),v=T;return l((t(),r("div",d,[(t(!0),r(f,null,I(p.list,a=>(t(),r(f,{key:a.articleId},[a.content&&a.content.newsItem?(t(),r("div",u,[e(P(B),{articles:a.content.newsItem},null,8,["articles"]),e(C,null,{default:s(()=>[l((t(),_(c,{type:"success",circle:"",onClick:m=>i("publish",a)},{default:s(()=>[e(n,{icon:"fa:upload"})]),_:2},1032,["onClick"])),[[o,["mp:free-publish:submit"]]]),l((t(),_(c,{type:"primary",circle:"",onClick:m=>i("update",a)},{default:s(()=>[e(n,{icon:"ep:edit"})]),_:2},1032,["onClick"])),[[o,["mp:draft:update"]]]),l((t(),_(c,{type:"danger",circle:"",onClick:m=>i("delete",a)},{default:s(()=>[e(n,{icon:"ep:delete"})]),_:2},1032,["onClick"])),[[o,["mp:draft:delete"]]])]),_:2},1024)])):g("",!0)],64))),128))])),[[v,p.loading]])}}}),[["__scopeId","data-v-eaf984a1"],["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/mp/draft/components/DraftTable.vue"]])});export{H as __tla,y as default};
