Skip to content

tantaiMoon/m-pagination

Repository files navigation

Welcome to moyi-components 👋


Version License: MIT

Prerequisites

  • node >=10

Install

yarn install moyi-components
# OR
npm install moyi-components

Usage

import { MyPagination } from 'moyi-components';
ReactDOM.render(<MyPagination />, container);

API

Parameter Description Type Default
current current page Number 1
pageSize items per page Number 10
total items total count Number 0
onChange page change callback Function(current, pageSize) -
showTotal show total records and range Function(total, [from, to]) -
style the style of pagination Object {}
prevIcon specifict the default previous icon ReactNode |(props: PaginationProps) => ReactNode
nextIcon specifict the default next icon ReactNode |(props: PaginationProps) => ReactNode

Run tests

yarn run test

Author

👤 moyiwpb

About

基于react的分页器组件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published