rc-pagination
Advanced tools
Comparing version 1.3.7 to 1.4.0
@@ -294,2 +294,12 @@ 'use strict'; | ||
var totalText = null; | ||
if (props.showTotal) { | ||
totalText = React.createElement( | ||
'span', | ||
{ className: prefixCls + '-total-text' }, | ||
props.showTotal(props.total) | ||
); | ||
} | ||
return React.createElement( | ||
@@ -299,2 +309,3 @@ 'ul', | ||
unselectable: 'unselectable' }, | ||
totalText, | ||
React.createElement( | ||
@@ -339,3 +350,3 @@ 'li', | ||
pageSizeOptions: React.PropTypes.arrayOf(React.PropTypes.string), | ||
showTotal: React.PropTypes.func, | ||
locale: React.PropTypes.object | ||
@@ -342,0 +353,0 @@ }; |
{ | ||
"name": "rc-pagination", | ||
"version": "1.3.7", | ||
"version": "1.4.0", | ||
"description": "pagination ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -78,2 +78,3 @@ # rc-pagination | ||
| showQuickJump | show quick goto jumper | Bool | false | | ||
| showTotal | show total records text | Function | undefined | | ||
| className | when set "mini", show mini version | String | rc-pagination | | ||
@@ -80,0 +81,0 @@ | simple | when set, show simple pager | Object | null | |
Sorry, the diff of this file is not supported yet
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
30908
738
93