DraftTable-1e8914e7.js 1.6 KB

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