MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / getPagedData

Function getPagedData

web/src/pages/Setting/Ratio/ModelRationNotSetEditor.js:96–100  ·  view source on GitHub ↗
(data, currentPage, pageSize)

Source from the content-addressed store, hash-verified

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) => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected