| 4 | import { useId, useMemo, useState } from 'react'; |
| 5 | |
| 6 | interface PaginatedRowProps { |
| 7 | children: React.ReactNode[]; |
| 8 | itemsPerPage?: number; |
| 9 | className?: string; |
| 10 | onLoadMore?: () => Promise<void>; // 新增:加载更多数据的回调函数 |
| 11 | hasMoreData?: boolean; // 新增:是否还有更多数据可加载 |
| 12 | isLoading?: boolean; // 新增:是否正在加载中 |
| 13 | } |
| 14 | |
| 15 | export default function PaginatedRow({ |
| 16 | children, |
nothing calls this directly
no outgoing calls
no test coverage detected