DraftTable-519bfc5e.js 1.6 KB

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