ソースを参照

Fixed table footer display bug in some case (#4458)

文翼 6 年 前
コミット
b24d9b32ec
1 ファイル変更5 行追加0 行削除
  1. 5 0
      src/bootstrap-table.js

+ 5 - 0
src/bootstrap-table.js

@@ -127,6 +127,11 @@ class BootstrapTable {
       }
       }
 
 
       this.$tableFooter = this.$container.find('.fixed-table-footer')
       this.$tableFooter = this.$container.find('.fixed-table-footer')
+    } else {
+      if (!this.$tableFooter.length) {
+        this.$el.append('<tfoot><tr></tr></tfoot>')
+        this.$tableFooter = this.$el.find('tfoot')
+      }
     }
     }
   }
   }