Skip to content

Commit abe1937

Browse files
committed
remove useless remote props for pagination
1 parent d31c71f commit abe1937

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/BootstrapTable.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ class BootstrapTable extends Component {
880880
renderPagination() {
881881
if (this.props.pagination) {
882882
let dataSize;
883-
if (this.isRemoteDataSource()) {
883+
if (this.allowRemote(Const.REMOTE_PAGE)) {
884884
dataSize = this.props.fetchInfo.dataTotalSize;
885885
} else {
886886
dataSize = this.store.getDataNum();
@@ -899,7 +899,6 @@ class BootstrapTable extends Component {
899899
pageStartIndex={ options.pageStartIndex }
900900
paginationShowsTotal={ options.paginationShowsTotal }
901901
paginationSize={ options.paginationSize || Const.PAGINATION_SIZE }
902-
remote={ this.isRemoteDataSource() }
903902
dataSize={ dataSize }
904903
onSizePerPageList={ options.onSizePerPageList }
905904
prePage={ options.prePage || Const.PRE_PAGE }

src/pagination/PaginationList.js

-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ PaginationList.propTypes = {
215215
sizePerPageList: PropTypes.array,
216216
paginationShowsTotal: PropTypes.oneOfType([ PropTypes.bool, PropTypes.func ]),
217217
paginationSize: PropTypes.number,
218-
remote: PropTypes.bool,
219218
onSizePerPageList: PropTypes.func,
220219
prePage: PropTypes.string,
221220
pageStartIndex: PropTypes.number,

0 commit comments

Comments
 (0)