Browse Source

Fixed export footer bug without setting height

zhixin 3 years ago
parent
commit
4e2e91716e
3 changed files with 7 additions and 7 deletions
  1. 3 3
      CHANGELOG.md
  2. 3 3
      site/news.md
  3. 1 1
      src/extensions/export/bootstrap-table-export.js

+ 3 - 3
CHANGELOG.md

@@ -3,13 +3,13 @@ ChangeLog
 
 ### 1.20.1
 
-### Core
+#### Core
 
 - **Update:** Fixed toggle column bug with complex headers.
 - **Update:** Fixed icons option cannot work bug when it's a string.
 - **Update:** Updated TypeScript definitions.
 
-##### Extensions
+#### Extensions
 
 - **Update(cookie):** Fixed cookie extension error with multiple-sort.
 - **Update(export):** Fixed the `exportOptions` option cannot support the data attribute.
@@ -36,7 +36,7 @@ ChangeLog
 - **Update:** Fixed `onVirtualScroll` not define default method.
 - **Update:** Updated cs-CZ, ko-KR, nl-NL, nl-BE, bg-BG, fr-LU locales.
 
-##### Extensions
+#### Extensions
 
 - **New(filter-control):** New version of filter-control with new features.
 - **New(reorder-rows):**: Added `onAllowDrop` and `onDragStop` options.

+ 3 - 3
site/news.md

@@ -8,13 +8,13 @@ description: News and announcements for all things Bootstrap Table, including ne
 
 <span class="post-date">12 May 2022</span>
 
-### Core
+#### Core
 
 - **Update:** Fixed toggle column bug with complex headers.
 - **Update:** Fixed icons option cannot work bug when it's a string.
 - **Update:** Updated TypeScript definitions.
 
-##### Extensions
+#### Extensions
 
 - **Update(cookie):** Fixed cookie extension error with multiple-sort.
 - **Update(export):** Fixed the `exportOptions` option cannot support the data attribute.
@@ -42,7 +42,7 @@ description: News and announcements for all things Bootstrap Table, including ne
 - **Update:** Fixed `onVirtualScroll` not define default method.
 - **Update:** Updated cs-CZ, ko-KR, nl-NL, nl-BE, bg-BG, fr-LU locales.
 
-##### Extensions
+#### Extensions
 
 - **New(filter-control):** New version of filter-control with new features.
 - **New(reorder-rows):**: Added `onAllowDrop` and `onDragStop` options.

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

@@ -198,7 +198,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
         o.exportOptions.ignoreColumn = [detailViewIndex].concat(o.exportOptions.ignoreColumn || [])
       }
 
-      if (o.exportFooter) {
+      if (o.exportFooter && o.height) {
         const $footerRow = this.$tableFooter.find('tr').first()
         const footerData = {}
         const footerHtml = []