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