import{g as m}from"./list-I2I5D8gr.js";import{_ as p}from"./index-C-XHZLOy.js";import{Z as f,d as w,r as y,c as h,o as k,l as o,w as t,j as e,B as b,p as u,N as T,an as g,ai as B,H as x}from"./index-9PRMimni.js";import{B as v}from"./Table-0PViRYCf.js";const N=[{type:"selection",width:60},{title:"id",key:"id",width:100,sorter:(a,s)=>a.id-s.id},{title:"名称",key:"name",width:100},{title:"头像",key:"avatar",width:200,render(a){return f(p,{imgList:[a.avatar,a.avatar],spaceProps:{justify:"space-between"},imageProps:{width:50,height:50}})}},{title:"地址",key:"address",auth:["basic_list"],ifShow:a=>!0,width:150},{title:"开始日期",key:"beginTime",width:160},{title:"结束日期",key:"endTime",width:160},{title:"创建时间",key:"date",width:100}],O=w({__name:"Table",setup(a){const s=y({name:""}),c=async i=>await m({...s.value,...i});return(i,n)=>{const r=T,l=b,d=x;return k(),h(o(v),{columns:o(N),request:c,"row-key":_=>_.id,ref:"tableRef",autoScrollX:!0},{tableTitle:t(()=>[e(d,null,{default:t(()=>[e(l,{type:"success"},{icon:t(()=>[e(r,null,{default:t(()=>[e(o(g))]),_:1})]),default:t(()=>[n[0]||(n[0]=u(" 导出 "))]),_:1}),e(l,{type:"error"},{icon:t(()=>[e(r,null,{default:t(()=>[e(o(B))]),_:1})]),default:t(()=>[n[1]||(n[1]=u(" 批量删除 "))]),_:1})]),_:1})]),_:1},8,["columns","row-key"])}}});export{O as _};
