File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -705,6 +705,8 @@ class BootstrapTable extends Component {
705
705
dataSize = this . store . getDataNum ( ) ;
706
706
}
707
707
const { options } = this . props ;
708
+ if ( Math . ceil ( dataSize / this . state . sizePerPage ) <= 1 &&
709
+ this . props . ignoreSinglePage ) return null ;
708
710
return (
709
711
< div className = 'react-bs-table-pagination' >
710
712
< PaginationList
@@ -964,7 +966,8 @@ BootstrapTable.propTypes = {
964
966
dataTotalSize : PropTypes . number
965
967
} ) ,
966
968
exportCSV : PropTypes . bool ,
967
- csvFileName : PropTypes . string
969
+ csvFileName : PropTypes . string ,
970
+ ignoreSinglePage : PropTypes . bool
968
971
} ;
969
972
BootstrapTable . defaultProps = {
970
973
height : '100%' ,
@@ -1046,7 +1049,8 @@ BootstrapTable.defaultProps = {
1046
1049
dataTotalSize : 0
1047
1050
} ,
1048
1051
exportCSV : false ,
1049
- csvFileName : 'spreadsheet.csv'
1052
+ csvFileName : 'spreadsheet.csv' ,
1053
+ ignoreSinglePage : false
1050
1054
} ;
1051
1055
1052
1056
export default BootstrapTable ;
You can’t perform that action at this time.
0 commit comments