mirror of
				https://github.com/soybeanjs/soybean-admin.git
				synced 2025-11-04 15:53:43 +08:00 
			
		
		
		
	Merge pull request #335 from dodu2014/main
fix(hooks): Fix Naive Pagination's outdated API
This commit is contained in:
		@@ -83,7 +83,8 @@ export function useTable<TableData extends BaseData, Fn extends ApiFn, CustomCol
 | 
			
		||||
    pageSize: 10,
 | 
			
		||||
    showSizePicker: true,
 | 
			
		||||
    pageSizes: [10, 15, 20, 25, 30],
 | 
			
		||||
    onChange: async (page: number) => {
 | 
			
		||||
    // Fix Naive Pagination's outdated API
 | 
			
		||||
    onUpdatePage: async (page: number) => {
 | 
			
		||||
      pagination.page = page;
 | 
			
		||||
 | 
			
		||||
      await onPaginationChanged?.(pagination);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user