import{d as e,r as a,e as s,J as o,o as t,f as r,g as l,k as n,Y as u,P as c,w as d,Z as i,_ as g}from"./index_1730355987.js";const p={class:"flex-sb"},b={class:"right"},v=g(e({__name:"h-table-paging",props:{total:{type:Number,default:0,required:!0},pageSize:{type:Number,default:10,required:!1},color:{type:String,default:"#fff",required:!1},background:{type:String,default:"#21212a",required:!1}},emits:["on-previous","on-nextPage"],setup(e,{emit:g}){const v=e,f=a(1),k=s((()=>0===v.total?1:Math.ceil(v.total/v.pageSize)));function y(){1!==f.value&&(f.value--,g("on-previous",f.value))}function m(){f.value!==k.value&&(f.value++,g("on-nextPage",f.value))}return o((async()=>{})),(a,s)=>{const o=i;return t(),r("div",{class:"content_body",style:n({color:e.color})},[l("div",p,[l("div",{class:"left border",style:n({background:e.background})},"Totals："+u(e.total),5),l("div",b,[c(o,{class:"border",style:n({background:e.background}),size:"14px",name:"arrow-left",onClick:d(y,["stop"])},null,8,["style","onClick"]),l("div",{class:"border num",style:n({background:e.background})},u(f.value),5),c(o,{style:n({background:e.background}),class:"border",size:"14px",name:"arrow",onClick:d(m,["stop"])},null,8,["style","onClick"])])])],4)}}}),[["__scopeId","data-v-d067683f"]]);export{v as _};
