Skip to content

Commit 5676024

Browse files
authored
fix(hooks): The total number before assigning a value to the table is incorrect. (#687)
1 parent d7aebb7 commit 5676024

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hooks/common/table.ts

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export function useTable<A extends NaiveUI.TableApiFn>(config: NaiveUI.NaiveTabl
119119
page: 1,
120120
pageSize: 10,
121121
showSizePicker: true,
122+
itemCount: 0,
122123
pageSizes: [10, 15, 20, 25, 30],
123124
onUpdatePage: async (page: number) => {
124125
pagination.page = page;

0 commit comments

Comments
 (0)