@@ -223,7 +223,7 @@ class PaginationList extends Component {
223
223
false :
224
224
true ;
225
225
} , this )
226
- . map ( function ( page ) {
226
+ . map ( function ( page , index ) {
227
227
const isActive = page === this . props . currPage ;
228
228
const isDisabled = ( isStart ( page , this . props ) || isEnd ( page , this . props ) ) ?
229
229
true :
@@ -241,7 +241,7 @@ class PaginationList extends Component {
241
241
}
242
242
243
243
return (
244
- < PageButton key = { page }
244
+ < PageButton key = { index }
245
245
title = { title }
246
246
changePage = { this . changePage }
247
247
active = { isActive }
@@ -313,7 +313,10 @@ PaginationList.propTypes = {
313
313
paginationShowsTotal : PropTypes . oneOfType ( [ PropTypes . bool , PropTypes . func ] ) ,
314
314
paginationSize : PropTypes . number ,
315
315
onSizePerPageList : PropTypes . func ,
316
- prePage : PropTypes . string ,
316
+ prePage : PropTypes . any ,
317
+ nextPage : PropTypes . any ,
318
+ firstPage : PropTypes . any ,
319
+ lastPage : PropTypes . any ,
317
320
pageStartIndex : PropTypes . number ,
318
321
hideSizePerPage : PropTypes . bool ,
319
322
alwaysShowAllBtns : PropTypes . bool ,
0 commit comments