import{t as C}from"./data2.js";import{r as a,al as u,b5 as S,o as x,aB as c,L as A}from"./index.js";function y(){const o=a([]),t=a(!0),s=a("no"),n=a("nohide"),f=a("default"),h=a(!1),i=a("right"),d=[{type:"selection",align:"left",reserveSelection:!0,hide:()=>s.value==="no"},{label:"日期",prop:"date",hide:()=>n.value==="hideDate"},{label:"姓名",prop:"name",hide:()=>n.value==="hideName"},{label:"地址",prop:"address",hide:()=>n.value==="hideAddress"}],l=u({pageSize:10,currentPage:1,pageSizes:[10,15,20],total:0,align:"right",background:!0,small:!1}),r=u({text:"正在加载第一页...",viewBox:"-10, -10, 50, 50",spinner:` `});function g(e){l.small=e}function p(e){}function v(e){r.text=`正在加载第${e}页...`,t.value=!0,c(600).then(()=>{t.value=!1})}return S(()=>{l.align=i.value}),x(()=>{c(600).then(()=>{const e=[];Array.from({length:6}).forEach(()=>{e.push(A(C,!0))}),e.flat(1/0).forEach((m,b)=>{o.value.push({id:b,...m})}),l.total=o.value.length,t.value=!1})}),{loading:t,columns:d,dataList:o,select:s,hideVal:n,tableSize:f,pagination:l,loadingConfig:r,paginationAlign:i,paginationSmall:h,onChange:g,onSizeChange:p,onCurrentChange:v}}export{y as useColumns}; //# sourceMappingURL=columns11.js.map