rc-pagination
Advanced tools
Comparing version 1.7.5 to 1.8.0
@@ -0,1 +1,7 @@ | ||
1.8.0 | ||
================== | ||
* Add locale `zh_Tw`. | ||
* Add `showTitle`. | ||
1.7.5 | ||
@@ -2,0 +8,0 @@ ================== |
@@ -37,3 +37,3 @@ 'use strict'; | ||
'li', | ||
{ title: props.page, className: cls, onClick: props.onClick }, | ||
{ title: props.showTitle ? props.page : null, className: cls, onClick: props.onClick }, | ||
React.createElement( | ||
@@ -55,5 +55,6 @@ 'a', | ||
locale: React.PropTypes.object, | ||
className: React.PropTypes.string | ||
className: React.PropTypes.string, | ||
showTitle: React.PropTypes.bool | ||
}; | ||
module.exports = Pager; |
@@ -218,3 +218,3 @@ 'use strict'; | ||
{ | ||
title: locale.prev_page, | ||
title: props.showTitle ? locale.prev_page : null, | ||
onClick: this._prev, | ||
@@ -227,3 +227,6 @@ className: (this._hasPrev() ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev' | ||
'li', | ||
{ title: this.state.current + '/' + allPages, className: prefixCls + '-simple-pager' }, | ||
{ | ||
title: props.showTitle ? this.state.current + '/' + allPages : null, | ||
className: prefixCls + '-simple-pager' | ||
}, | ||
React.createElement('input', { | ||
@@ -246,3 +249,3 @@ type: 'text', | ||
{ | ||
title: locale.next_page, | ||
title: props.showTitle ? locale.next_page : null, | ||
onClick: this._next, | ||
@@ -265,10 +268,12 @@ className: (this._hasNext() ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next' | ||
page: i, | ||
active: active | ||
active: active, | ||
showTitle: props.showTitle | ||
})); | ||
} | ||
} else { | ||
var showLessItems = props.showLessItems ? locale.prev_3 : locale.prev_5; | ||
jumpPrev = React.createElement( | ||
'li', | ||
{ | ||
title: props.showLessItems ? locale.prev_3 : locale.prev_5, | ||
title: props.showTitle ? showLessItems : null, | ||
key: 'prev', | ||
@@ -283,3 +288,3 @@ onClick: this._jumpPrev, | ||
{ | ||
title: props.showLessItems ? locale.next_3 : locale.next_5, | ||
title: props.showTitle ? showLessItems : null, | ||
key: 'next', | ||
@@ -298,3 +303,4 @@ onClick: this._jumpNext, | ||
page: allPages, | ||
active: false | ||
active: false, | ||
showTitle: props.showTitle | ||
}); | ||
@@ -307,3 +313,4 @@ firstPager = React.createElement(Pager, { | ||
page: 1, | ||
active: false | ||
active: false, | ||
showTitle: props.showTitle | ||
}); | ||
@@ -330,3 +337,4 @@ | ||
page: _i, | ||
active: _active | ||
active: _active, | ||
showTitle: props.showTitle | ||
})); | ||
@@ -377,3 +385,3 @@ } | ||
{ | ||
title: locale.prev_page, | ||
title: props.showTitle ? locale.prev_page : null, | ||
onClick: this._prev, | ||
@@ -388,3 +396,3 @@ className: (this._hasPrev() ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev' | ||
{ | ||
title: locale.next_page, | ||
title: props.showTitle ? locale.next_page : null, | ||
onClick: this._next, | ||
@@ -424,2 +432,3 @@ className: (this._hasNext() ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next' | ||
showQuickJumper: React.PropTypes.bool, | ||
showTitle: React.PropTypes.bool, | ||
pageSizeOptions: React.PropTypes.arrayOf(React.PropTypes.string), | ||
@@ -443,2 +452,3 @@ showTotal: React.PropTypes.func, | ||
showLessItems: false, | ||
showTitle: true, | ||
onShowSizeChange: noop, | ||
@@ -445,0 +455,0 @@ locale: LOCALE, |
{ | ||
"name": "rc-pagination", | ||
"version": "1.7.5", | ||
"version": "1.8.0", | ||
"description": "pagination ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -76,2 +76,3 @@ # rc-pagination | ||
| showLessItems | show less page items | Bool | false | | ||
| showTitle | show page items title | Bool | true | | ||
@@ -78,0 +79,0 @@ ## License |
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
38277
24
1001
81