File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,11 @@ class BootstrapTable extends React.Component {
97
97
this . initTable ( nextProps ) ;
98
98
if ( Array . isArray ( nextProps . data ) ) {
99
99
this . store . setData ( nextProps . data ) ;
100
- this . store . page ( nextProps . options . page || 1 ,
101
- nextProps . options . sizePerPage || Const . SIZE_PER_PAGE_LIST [ 0 ] ) ;
100
+ let data = this . store . page ( nextProps . options . page || this . refs . pagination . getCurrentPage ( ) ,
101
+ nextProps . options . sizePerPage || this . refs . pagination . getSizePerPage ( ) )
102
+ . get ( ) ;
102
103
this . setState ( {
103
- data : this . getTableData ( )
104
+ data : data
104
105
} ) ;
105
106
}
106
107
if ( nextProps . selectRow && nextProps . selectRow . selected ) {
@@ -655,9 +656,9 @@ BootstrapTable.defaultProps = {
655
656
afterSearch : undefined ,
656
657
afterColumnFilter : undefined ,
657
658
onRowClick : undefined ,
658
- page : 1 ,
659
+ page : undefined ,
659
660
sizePerPageList : Const . SIZE_PER_PAGE_LIST ,
660
- sizePerPage : Const . SIZE_PER_PAGE_LIST [ 0 ] ,
661
+ sizePerPage : undefined ,
661
662
paginationSize : Const . PAGINATION_SIZE ,
662
663
onSizePerPageList : undefined
663
664
} ,
You can’t perform that action at this time.
0 commit comments