import{d as f,$ as y,L as p,r as b,bf as x,y as z,a6 as h,o as C,x as N,a as P,_ as S,__tla as U}from"./index-7d5b26d3.js";import{E as j,__tla as k}from"./index-cdb8fe72.js";let g,q=Promise.all([(()=>{try{return U}catch{}})(),(()=>{try{return k}catch{}})()]).then(async()=>{g=S(f({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?4:7}},emits:["update:page","update:limit","pagination","pagination"],setup(t,{emit:m}){const c=y(),s=p(()=>c.currentSize),o=b(s.value==="small");x(()=>{o.value=s.value==="small"});const i=t,l=m,e=p({get:()=>i.page,set(a){l("update:page",a)}}),r=p({get:()=>i.limit,set(a){l("update:limit",a)}}),d=a=>{e.value*a>i.total&&(e.value=1),l("pagination",{page:e.value,limit:a})},_=a=>{l("pagination",{page:a,limit:r.value})};return(a,n)=>{const v=j;return z((C(),N(v,{"current-page":e.value,"onUpdate:currentPage":n[0]||(n[0]=u=>e.value=u),"page-size":r.value,"onUpdate:pageSize":n[1]||(n[1]=u=>r.value=u),background:!0,"page-sizes":[10,20,30,50,100],"pager-count":t.pagerCount,total:t.total,small:P(o),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"])),[[h,t.total>0]])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/components/Pagination/index.vue"]])});export{g as _,q as __tla};
