rc-pagination
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -16,2 +16,4 @@ 'use strict'; | ||
var Options = (function (_React$Component) { | ||
_inherits(Options, _React$Component); | ||
function Options(props) { | ||
@@ -28,4 +30,2 @@ var _this = this; | ||
_inherits(Options, _React$Component); | ||
_createClass(Options, [{ | ||
@@ -32,0 +32,0 @@ key: 'render', |
@@ -14,2 +14,4 @@ 'use strict'; | ||
var Pager = (function (_React$Component) { | ||
_inherits(Pager, _React$Component); | ||
function Pager() { | ||
@@ -21,4 +23,2 @@ _classCallCheck(this, Pager); | ||
_inherits(Pager, _React$Component); | ||
_createClass(Pager, [{ | ||
@@ -25,0 +25,0 @@ key: 'render', |
@@ -18,2 +18,4 @@ 'use strict'; | ||
var Pagination = (function (_React$Component) { | ||
_inherits(Pagination, _React$Component); | ||
function Pagination(props) { | ||
@@ -36,4 +38,2 @@ var _this = this; | ||
_inherits(Pagination, _React$Component); | ||
_createClass(Pagination, [{ | ||
@@ -184,3 +184,3 @@ key: 'componentWillReceiveProps', | ||
value: function _calcPage() { | ||
return Math.floor((this.props.total - 1) / this.state.pageSize); | ||
return Math.floor((this.props.total - 1) / this.state.pageSize) + 1; | ||
} | ||
@@ -187,0 +187,0 @@ }, { |
{ | ||
"name": "rc-pagination", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "pagination ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24571