var e=[`10`,`20`,`50`,`100`];function t(t){let n=t.pageSize??20;return{current:t.page,pageSize:n,total:t.total,showSizeChanger:!0,pageSizeOptions:e,showTotal:t.showTotal,onChange:(e,r)=>{if(r&&r!==n&&t.onPageSizeChange){t.onPageSizeChange(r),t.onPageChange(1);return}t.onPageChange(e)}}}function n(t){return{pageSize:t.pageSize,showSizeChanger:!0,pageSizeOptions:e,showTotal:t.showTotal??(e=>`共 ${e} 条`),onShowSizeChange:(e,n)=>t.onPageSizeChange(n)}}export{t as n,n as t};