var I=(d,g,s)=>new Promise((f,i)=>{var p=n=>{try{c(s.next(n))}catch(l){i(l)}},h=n=>{try{c(s.throw(n))}catch(l){i(l)}},c=n=>n.done?f(n.value):Promise.resolve(n.value).then(p,h);c((s=s.apply(d,g)).next())});import{_ as D,f as F,g as K}from"./index-2a45336b.js";import{u as j}from"./usePagination-7442a465.js";import{b as e,o as k,k as M,e as t,w as a,K as r,u as o,au as v,E as _,c as O,V as Q,at as T,aK as q,aw as A,F as G,M as H,N as J}from"./ant-design-vue-710243d9.js";import"./tinymce-3184e0f1.js";import"./echarts-ca5d9323.js";import"./cropper-47c8e461.js";import"./lodash-es-7cb071db.js";import"./qrcode-bec2257a.js";import"./jschardet-bd496279.js";const P=d=>(H("data-v-f4dd292e"),d=d(),J(),d),R=P(()=>r("div",null," 段落示意：蚂蚁金服务设计平台 ant.design，用最小的工作量，无缝接入蚂蚁金服生态， 提供跨越设计与开发的体验解决方案。 ",-1)),U=P(()=>r("img",{alt:"",src:"http://cdn.xuanyunet.com/images/img_1.png",width:"155",style:{margin:"-20px 0 0"}},null,-1)),W=Object.assign({name:"listCard"},{__name:"index",setup(d){const{loading:g,listData:s,showLoading:f,hideLoading:i,paginationState:p}=j();h();function h(){return I(this,null,function*(){try{f();const{pageSize:c,current:n}=p,{code:l,data:u}=yield F.common.getPageList({pageSize:c,current:n}).catch(()=>{throw new Error});if(i(),K("http.code.success")===l){const{records:y,pagination:x}=u;s.value=y,p.total=x.total}}catch(c){i()}})}return(c,n)=>{const l=e("a-space"),u=e("a-col"),y=e("a-row"),x=e("a-page-header"),E=e("a-button"),S=e("a-card"),b=e("a-list-item"),L=e("a-avatar"),B=e("a-typography-paragraph"),N=e("a-card-meta"),w=e("a-menu-item"),V=e("a-menu"),C=e("a-dropdown"),z=e("a-list");return k(),M(G,null,[t(x,{main:"",title:"卡片列表",ghost:!1},{default:a(()=>[t(y,{type:"flex",align:"middle"},{default:a(()=>[t(u,{flex:"1",gutter:88},{default:a(()=>[R,t(l,{class:"mt-8-1",size:24},{default:a(()=>[r("a",null,[t(o(v)),_(" Quick Start ")]),r("a",null,[t(o(v)),_(" Product Info ")]),r("a",null,[t(o(v)),_(" Product Doc ")])]),_:1})]),_:1}),t(u,{flex:"0 0 242px"},{default:a(()=>[U]),_:1})]),_:1})]),_:1}),t(z,{"data-source":o(s),grid:{gutter:16,sm:1,md:2,lg:4,xl:4,xxl:6},loading:o(g)},{renderItem:a(({item:m})=>[m.id?(k(),O(b,{key:1},{default:a(()=>[t(S,null,{actions:a(()=>[t(o(T),{key:"setting"}),t(o(q),{key:"edit"}),t(C,{trigger:["click"]},{overlay:a(()=>[t(V,null,{default:a(()=>[t(w,null,{default:a(()=>[_("菜单 1")]),_:1}),t(w,null,{default:a(()=>[_("菜单 2")]),_:1}),t(w,null,{default:a(()=>[_("菜单 3")]),_:1})]),_:1})]),default:a(()=>[t(o(A),{key:"ellipsis"})]),_:1})]),default:a(()=>[t(N,{title:m.title},{avatar:a(()=>[t(L,{src:m.avatar},null,8,["src"])]),description:a(()=>[t(B,{ellipsis:{rows:3},content:m.paragraph},null,8,["content"])]),_:2},1032,["title"])]),_:2},1024)]),_:2},1024)):(k(),O(b,{key:0},{default:a(()=>[t(S,{"body-style":{padding:0}},{default:a(()=>[t(E,{type:"dashed",class:"create-btn"},{default:a(()=>[t(o(Q)),_(" 新增 ")]),_:1})]),_:1})]),_:1}))]),_:1},8,["data-source","loading"])],64)}}}),ct=D(W,[["__scopeId","data-v-f4dd292e"]]);export{ct as default};
