import{_ as m}from"./index-M_JNBppB.js";/* empty css                      *//* empty css               *//* empty css                  *//* empty css                     *//* empty css                  *//* empty css                 */import{H as c}from"./element-3_pOinej.js";import{r as d,j as z,B as S,z as p,y as C,I as h}from"./vue-BJk78QHK.js";const f={class:"pagination"},v={__name:"index",props:{pageTotal:Number,pageSizes:{type:Array,default:()=>[10,20,50,100,1e3]},pageSize:{type:Number,default:10}},emits:["handleCurrentChange","handleSizeChange"],setup(a,{emit:r}){const g=a,i=r,e=d({pageIndex:1,pageSize:10,pageSizes:[10,20,50,100,1e3],layout:"total, sizes, prev, pager, next, jumper"});function s(t){i("handleCurrentChange",t)}function l(t){i("handleSizeChange",t)}return z(()=>{e.value.pageSize=g.pageSize}),(t,n)=>{const u=c;return p(),S("div",f,[a.pageTotal>0?(p(),C(u,{key:0,"current-page":e.value.pageIndex,"onUpdate:currentPage":n[0]||(n[0]=o=>e.value.pageIndex=o),"page-size":e.value.pageSize,"onUpdate:pageSize":n[1]||(n[1]=o=>e.value.pageSize=o),size:"small",background:"","page-sizes":a.pageSizes,layout:e.value.layout,total:a.pageTotal,onCurrentChange:s,onSizeChange:l},null,8,["current-page","page-size","page-sizes","layout","total"])):h("",!0)])}}},T=m(v,[["__scopeId","data-v-0c325c28"]]);export{T as P};
