import{U as d}from"./element-plus-DckSU5ni.js";import{x as m,c,y as z,O as f,B as C,u as n,z as h}from"./vue-vendor-vBC20LeU.js";const y={class:"pagination"},x=m({__name:"index",props:{modelValue:{default:()=>({})},total:{},pageSizes:{default:()=>[10,20,50,100]},pagerCount:{default:document.body.clientWidth<992?5:7},layout:{default:"total, sizes, prev, pager, next, jumper"}},emits:["update:modelValue","change"],setup(e,{emit:u}){const i=e,o=u,a=c({get(){return i.modelValue},set(l){o("update:modelValue",l)}}),r=()=>{a.value.page=1,o("change")},g=()=>{o("change")};return(l,t)=>{const p=d;return h(),z("div",y,[f(p,C({"current-page":n(a).page,"onUpdate:currentPage":t[0]||(t[0]=s=>n(a).page=s),"page-size":n(a).limit,"onUpdate:pageSize":t[1]||(t[1]=s=>n(a).limit=s),layout:e.layout,"page-sizes":e.pageSizes,"pager-count":e.pagerCount,total:e.total},l.$attrs,{onSizeChange:r,onCurrentChange:g}),null,16,["current-page","page-size","layout","page-sizes","pager-count","total"])])}}});export{x as _};
