Browse Source

Merge pull request #4228 from Falseee/du/fix/issue-4227

Also set the totalRows option if pagination is not active
文翼 6 years ago
parent
commit
a01ec2213a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/bootstrap-table.js

+ 4 - 0
src/bootstrap-table.js

@@ -2114,6 +2114,10 @@
       this.updateSelected()
       this.resetView()
 
+      if (this.options.sidePagination !== 'server') {
+        this.options.totalRows = data.length
+      }
+
       this.trigger('post-body', data)
     }