ソースを参照

fixed bug with the footer extensions while sorting

Dustin Utecht 6 年 前
コミット
4b5f997c34
1 ファイル変更1 行追加3 行削除
  1. 1 3
      src/extensions/export/bootstrap-table-export.js

+ 1 - 3
src/extensions/export/bootstrap-table-export.js

@@ -176,10 +176,8 @@ $.BootstrapTable = class extends $.BootstrapTable {
           footerHtml.push(footerCellHtml)
         })
 
-        this.append(footerData)
-
+        this.$body.append(this.$body.children().last()[0].outerHTML)
         const $lastTableRow = this.$body.children().last()
-
         $.each($lastTableRow.children(), (index, lastTableRowCell) => {
           $(lastTableRowCell).html(footerHtml[index])
         })