浏览代码

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

Also set the totalRows option if pagination is not active
文翼 6 年之前
父节点
当前提交
a01ec2213a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/bootstrap-table.js

+ 4 - 0
src/bootstrap-table.js

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