📜  分页组件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:59.438000             🧑  作者: Mango

代码示例1
import _ from "lodash";
import React from "react";

const Pagination = (props) => {
  const { pageSize, itemsCount, onPageChange, currentPage } = props;
  const pageCount = itemsCount / pageSize;
  const pages = _.range(1, Math.ceil(pageCount) + 1);

  return (
    
  );
};

export default Pagination;