rc-pagination
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -12,5 +12,2 @@ 'use strict'; | ||
var React = require('react'); | ||
var Select = require('rc-select'); | ||
var Option = Select.Option; | ||
var KEYCODE = require('./KeyCode'); | ||
@@ -39,3 +36,3 @@ | ||
var quickGo = props.quickGo; | ||
var Select = props.selectComponentClass; | ||
var changeSelect = null; | ||
@@ -48,3 +45,4 @@ var goInput = null; | ||
if (changeSize) { | ||
if (changeSize && Select) { | ||
var _Option = Select.Option; | ||
changeSelect = React.createElement( | ||
@@ -58,3 +56,3 @@ Select, | ||
React.createElement( | ||
Option, | ||
_Option, | ||
{ value: '10' }, | ||
@@ -64,3 +62,3 @@ '10 条/页' | ||
React.createElement( | ||
Option, | ||
_Option, | ||
{ value: '20' }, | ||
@@ -70,3 +68,3 @@ '20 条/页' | ||
React.createElement( | ||
Option, | ||
_Option, | ||
{ value: '30' }, | ||
@@ -76,3 +74,3 @@ '30 条/页' | ||
React.createElement( | ||
Option, | ||
_Option, | ||
{ value: '40' }, | ||
@@ -79,0 +77,0 @@ '40 条/页' |
@@ -172,2 +172,3 @@ 'use strict'; | ||
React.createElement(Options, { rootPrefixCls: prefixCls, | ||
selectComponentClass: props.selectComponentClass, | ||
selectPrefixCls: props.selectPrefixCls, | ||
@@ -273,2 +274,3 @@ changeSize: this.props.showSizeChanger ? this._changePageSize.bind(this) : null, | ||
showSizeChanger: React.PropTypes.bool, | ||
selectComponentClass: React.PropTypes.func, | ||
showQuickJumper: React.PropTypes.bool | ||
@@ -285,2 +287,3 @@ }; | ||
prefixCls: 'rc-pagination', | ||
selectComponentClass: null, | ||
showQuickJumper: false, | ||
@@ -287,0 +290,0 @@ showSizeChanger: false |
{ | ||
"name": "rc-pagination", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "pagination ui component for react", | ||
@@ -43,10 +43,8 @@ "keywords": [ | ||
"react": "0.13.x", | ||
"node-dev": "2.x" | ||
"node-dev": "2.x", | ||
"rc-select": "^4.2.1" | ||
}, | ||
"precommit": [ | ||
"precommit" | ||
], | ||
"dependencies": { | ||
"rc-select": "^4.2.1" | ||
} | ||
] | ||
} |
@@ -68,4 +68,15 @@ # rc-pagination | ||
See [Here](https://github.com/react-component/pagination/blob/master/src/Pagination.jsx#L149) | ||
### Pagination | ||
| Parameter | Description | Type | Default | | ||
|-----------------|------------------------------------|----------|---------------| | ||
| current | currnt page | Number | 1 | | ||
| total | items total count | Number | 0 | | ||
| pageSize | items per page | Number | 10 | | ||
| onChange | page change callback | Function | noop | | ||
| showSizeChanger | show pageSize changer | Bool | false | | ||
| showQuickJump | show quick goto jumper | Bool | false | | ||
| className | when set "mini", show mini version | String | rc-pagination | | ||
| simple | when set, show simple pager | Object | null | | ||
## Test Case | ||
@@ -72,0 +83,0 @@ |
26419
0
593
92
7
- Removedrc-select@^4.2.1
- Removedadd-dom-event-listener@1.1.0(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedclassnames@2.5.1(transitive)
- Removedcomponent-classes@1.2.6(transitive)
- Removedcomponent-indexof@0.0.3(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedcss-animation@1.6.1(transitive)
- Removeddom-align@1.12.4(transitive)
- Removeddom-scroll-into-view@1.2.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedlodash._getnative@3.9.1(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.keys@3.1.2(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedraf@3.4.1(transitive)
- Removedrc-align@1.2.1(transitive)
- Removedrc-animate@1.3.02.11.1(transitive)
- Removedrc-menu@4.13.0(transitive)
- Removedrc-select@4.9.1(transitive)
- Removedrc-util@2.1.13.4.14.21.1(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedreact-lifecycles-compat@3.0.4(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedshallowequal@0.2.2(transitive)