import{aH as S,aI as k}from"./index-BTglIPU2.js?v=1773287522785";import{g as r}from"./data-BVsViUMm.js?v=1773287522785";import{aB as v}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as P,c as h,an as g,$ as w,a8 as y,au as B,a9 as U,_,aa as x,s as M,ao as l,n as T}from"./vue-core-DJjvd5ZC.js?v=1773287522785";const $={class:"ml-8px text-14px"},K=P({__name:"index",props:l({storeKey:{default:""},pageSizes:{default:()=>[10,20,50,100]},showTotal:{type:Boolean,default:!0},showSizePicker:{type:Boolean,default:!0},showQuickJumper:{type:Boolean,default:!0},onUpdatePageSize:{}},{page:{},pageModifiers:{},pageSize:{},pageSizeModifiers:{}}),emits:l(["refresh"],["update:page","update:pageSize"]),setup(n,{emit:c}){const s=n,u=c,o=h(()=>{const{storeKey:e}=s;return e?"".concat(e,"-page"):""}),i=g(n,"page"),p=g(n,"pageSize"),d=e=>{i.value=e,u("refresh")},m=e=>{var a;i.value=1,p.value=e,(a=s.onUpdatePageSize)==null||a.call(s,r(e)),z(e),T(()=>{u("refresh")})},z=e=>{o.value&&S(o.value,String(e))};return(()=>{var e;if(o.value){const a=k(o.value);a&&(p.value=r(a),(e=s.onUpdatePageSize)==null||e.call(s,r(a)))}})(),(e,a)=>{const f=v;return w(),y(f,M(e.$attrs,{page:i.value,"onUpdate:page":[a[0]||(a[0]=t=>i.value=t),d],"page-size":p.value,"onUpdate:pageSize":[a[1]||(a[1]=t=>p.value=t),m],"show-size-picker":e.showSizePicker,"show-quick-jumper":e.showQuickJumper,"page-sizes":e.pageSizes,"display-order":["pages","size-picker","quick-jumper"]}),B({_:2},[e.showTotal?{name:"suffix",fn:U(({itemCount:t})=>[_("span",$,x(e.$t("Public.Table.Page.index_4",[t])),1)]),key:"0"}:void 0]),1040,["page","page-size","show-size-picker","show-quick-jumper","page-sizes"])}}});export{K as _};
