File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,7 @@ class BootstrapTable extends React.Component {
476
476
paginationSize = { this . props . options . paginationSize || Const . PAGINATION_SIZE }
477
477
remote = { this . isRemoteDataSource ( ) }
478
478
dataSize = { dataSize }
479
+ onSizePerPageList = { this . props . options . onSizePerPageList }
479
480
/>
480
481
</ div >
481
482
) ;
@@ -602,6 +603,7 @@ BootstrapTable.propTypes = {
602
603
paginationSize : React . PropTypes . number ,
603
604
onSortChange : React . PropTypes . func ,
604
605
onPageChange : React . PropTypes . func ,
606
+ onSizePerPageList : React . PropTypes . func
605
607
} ) ,
606
608
fetchInfo : React . PropTypes . shape ( {
607
609
dataTotalSize : React . PropTypes . number ,
@@ -650,7 +652,8 @@ BootstrapTable.defaultProps = {
650
652
page : 1 ,
651
653
sizePerPageList : Const . SIZE_PER_PAGE_LIST ,
652
654
sizePerPage : Const . SIZE_PER_PAGE_LIST [ 0 ] ,
653
- paginationSize : Const . PAGINATION_SIZE
655
+ paginationSize : Const . PAGINATION_SIZE ,
656
+ onSizePerPageList : undefined
654
657
} ,
655
658
fetchInfo : {
656
659
dataTotalSize : 0 ,
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ class PaginationList extends React.Component {
57
57
currentPage : this . state . currentPage
58
58
} ) ;
59
59
this . props . changePage ( this . state . currentPage , selectSize ) ;
60
+ if ( this . props . onSizePerPageList ) {
61
+ this . props . onSizePerPageList ( selectSize ) ;
62
+ }
60
63
}
61
64
}
62
65
@@ -147,6 +150,7 @@ PaginationList.propTypes = {
147
150
sizePerPageList : React . PropTypes . array ,
148
151
paginationSize : React . PropTypes . number ,
149
152
remote : React . PropTypes . bool ,
153
+ onSizePerPageList : React . PropTypes . func
150
154
} ;
151
155
152
156
PaginationList . defaultProps = {
You can’t perform that action at this time.
0 commit comments