import{a5 as y,a8 as N,a9 as z}from"./index.17037962789732.js";import"./index.170379627897339.js";import"./index.170379627897316.js";import"./index.170379627897317.js";import{d,l as u,o as l,x as _,b as i,a as c,u as r,M as m,F as w,h as j,c as k,t as A,A as B}from"./vue.1703796278973.js";import{_ as C}from"./_plugin-vue_export-helper.1703796278973.js";const P={class:"pager"},h=d({name:"RowPagination"}),F=d({...h,props:{pageNum:null,pageSize:null,total:null},emits:["update:pageNum","update:pageSize"],setup(o,{emit:g}){const s=o,e=u({get:()=>s.pageNum,set:t=>{g("update:pageNum",t)}}),f=u(()=>{const t=Math.ceil(s.total/s.pageSize);return new Array(t).fill(1)});return(t,a)=>{const v=z,x=y,S=N;return l(),_("div",P,[i(x,{value:r(e),"onUpdate:value":a[0]||(a[0]=n=>m(e)?e.value=n:null),style:{width:"60px"}},{default:c(()=>[(l(!0),_(w,null,j(r(f),(n,p)=>(l(),k(v,{value:p+1},{default:c(()=>[A(B(p+1),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value"]),i(S,{pageSize:o.pageSize,current:r(e),"onUpdate:current":a[1]||(a[1]=n=>m(e)?e.value=n:null),total:o.total,style:{"text-align":"center"}},null,8,["pageSize","current","total"])])}}});const D=C(F,[["__scopeId","data-v-c74d580e"]]);export{D as _};
