import{d as y,y as b,e as i,r as z,b7 as f,k as h,v as x,o as C,A as N,a as P,__tla as S}from"./index-92ad187a.js";import{E as k,__tla as U}from"./index-10cdad38.js";let g,j=Promise.all([(()=>{try{return S}catch{}})(),(()=>{try{return U}catch{}})()]).then(async()=>{g=y({name:"Pagination",__name:"index",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pagerCount:{type:Number,default:document.body.clientWidth<992?5:7}},emits:["update:page","update:limit","pagination","pagination"],setup(t,{emit:m}){const c=b(),o=i(()=>c.currentSize),s=z(o.value==="small");f(()=>{s.value=o.value==="small"});const n=t,l=m,e=i({get:()=>n.page,set(a){l("update:page",a)}}),u=i({get:()=>n.limit,set(a){l("update:limit",a)}}),d=a=>{e.value*a>n.total&&(e.value=1),l("pagination",{page:e.value,limit:a})},_=a=>{l("pagination",{page:a,limit:u.value})};return(a,r)=>{const v=k;return h((C(),N(v,{"current-page":e.value,"onUpdate:currentPage":r[0]||(r[0]=p=>e.value=p),"page-size":u.value,"onUpdate:pageSize":r[1]||(r[1]=p=>u.value=p),background:!0,"page-sizes":[10,20,30,50,100],"pager-count":t.pagerCount,total:t.total,small:P(s),class:"float-right mb-15px mt-15px",layout:"total, sizes, prev, pager, next, jumper",onSizeChange:d,onCurrentChange:_},null,8,["current-page","page-size","pager-count","total","small"])),[[x,t.total>0]])}}})});export{g as _,j as __tla};
