DraftTable-fa3398a7.js 1.6 KB

1
  1. import{d as w,a3 as I,k as l,o as a,c as s,F as f,R as g,f as e,a as v,B as r,A as _,D as x,_ as B,K as D,L as P,Z as j,__tla as A}from"./index-e8bff8cb.js";import F,{__tla as K}from"./main-555e2935.js";import{_ as L}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as R}from"./el-image-7cacfc0f.js";import{__tla as T}from"./el-image-viewer-aab7739e.js";let y,Z=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return T}catch{}})()]).then(async()=>{let p,d;p={class:"waterfall"},d={key:0,class:"waterfall-item"},y=L(w({__name:"DraftTable",props:{list:{},loading:{type:Boolean}},emits:["publish","update","delete"],setup(h,{emit:k}){const u=h,c=k;return(q,z)=>{const i=B,n=D,C=P,o=I("hasPermi"),b=j;return l((a(),s("div",p,[(a(!0),s(f,null,g(u.list,t=>(a(),s(f,{key:t.articleId},[t.content&&t.content.newsItem?(a(),s("div",d,[e(v(F),{articles:t.content.newsItem},null,8,["articles"]),e(C,null,{default:r(()=>[l((a(),_(n,{type:"success",circle:"",onClick:m=>c("publish",t)},{default:r(()=>[e(i,{icon:"fa:upload"})]),_:2},1032,["onClick"])),[[o,["mp:free-publish:submit"]]]),l((a(),_(n,{type:"primary",circle:"",onClick:m=>c("update",t)},{default:r(()=>[e(i,{icon:"ep:edit"})]),_:2},1032,["onClick"])),[[o,["mp:draft:update"]]]),l((a(),_(n,{type:"danger",circle:"",onClick:m=>c("delete",t)},{default:r(()=>[e(i,{icon:"ep:delete"})]),_:2},1032,["onClick"])),[[o,["mp:draft:delete"]]])]),_:2},1024)])):x("",!0)],64))),128))])),[[b,u.loading]])}}}),[["__scopeId","data-v-30dff376"]])});export{Z as __tla,y as default};