@aimer2/pager
墨葡科技前端分页组件
Last updated a year ago by ktlshy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @aimer2/pager 
SYNC missed versions from official npm registry.

Install

npm install '@aimer2/pager'

Usage

import { Pager } from "@aimer2/pager";

<Pager
	pageCont={10}
	onPageChange={page => {
		//fetchNewData
	}}
/>;

props

    //触发分页变化时的回调函数,参数为page,表示当前页
    onPageChange: PropTypes.func,
    //总页数
	pageCount: PropTypes.number.isRequired,
    pageRange: PropTypes.number,
    //上一页按钮文字
    preLabel: PropTypes.string,
    //下一页按钮文字
    nextLabel: PropTypes.string,
    //自定义css 类
    clsFix: PropTypes.string,
    //是否显示页面跳转输入框
    showJump: PropTypes.bool,
    //当总页数小于或等于一页时是否自动隐藏
    autoHide: PropTypes.bool,
    //触发分页变化时,是否需要是页面滚动到某一位置
	anchor: PropTypes.oneOfType([
		PropTypes.string,
		PropTypes.number,
		PropTypes.instanceOf(Element),
	]),

Current Tags

  • 1.3.1                                ...           latest (a year ago)

22 Versions

  • 1.3.1                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.8                                ...           a year ago
  • 1.2.7                                ...           a year ago
  • 1.2.6                                ...           a year ago
  • 1.2.5                                ...           a year ago
  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 22
This Month 66
Last Day 0
Last Week 0
Last Month 2
Dependencies (8)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |