We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abaaa4a commit 32b8f99Copy full SHA for 32b8f99
src/hooks/common/table.ts
@@ -43,7 +43,7 @@ export function useTable<A extends NaiveUI.TableApiFn>(config: NaiveUI.NaiveTabl
43
// Ensure that the size is greater than 0, If it is less than 0, it will cause paging calculation errors.
44
const pageSize = size <= 0 ? 10 : size;
45
46
- const recordsWithIndex = records.map((item, index) => {
+ const recordsWithIndex = records.map((item: GetTableData<A>, index: number) => {
47
return {
48
...item,
49
index: (current - 1) * pageSize + index + 1
0 commit comments