moyi-components
v0.3.5
Published
---
Maintainers
Readme
Welcome to moyi-components 👋
Prerequisites
- node >=10
Install
yarn install moyi-components
# OR
npm install moyi-componentsUsage
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 testAuthor
👤 moyiwpb
