(data, currentPage, pageSize)
| 94 | |
| 95 | // 首先声明分页相关的工具函数 |
| 96 | const getPagedData = (data, currentPage, pageSize) => { |
| 97 | const start = (currentPage - 1) * pageSize; |
| 98 | const end = start + pageSize; |
| 99 | return data.slice(start, end); |
| 100 | }; |
| 101 | |
| 102 | // 处理页面大小变化 |
| 103 | const handlePageSizeChange = (size) => { |
no outgoing calls
no test coverage detected