Browse Source

Merge pull request #4328 from wenzhixin/fix/4318

Copy the dir attribute
Dustin Utecht 6 years ago
parent
commit
384c02344f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/extensions/print/bootstrap-table-print.js

+ 2 - 1
src/extensions/print/bootstrap-table-print.js

@@ -107,7 +107,8 @@ $.BootstrapTable = class extends $.BootstrapTable {
     }
 
     const buildTable = (data, columnsArray) => {
-      const html = ['<table><thead>']
+      const dir = this.$el.attr('dir') || 'ltr'
+      const html = [`<table dir="${dir}"><thead>`]
 
       for (const columns of columnsArray) {
         html.push('<tr>')