ソースを参照

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.resetView()
 
+      if (this.options.sidePagination !== 'server') {
+        this.options.totalRows = data.length
+      }
+
       this.trigger('post-body', data)
     }