ソースを参照

theadClasses is not set by default

If a thead exists and $.BootstrapTable.DEFAULTS.theadClasses is set the class is never set on init.
Greg 7 年 前
コミット
85a689d735
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/bootstrap-table.js

+ 3 - 0
src/bootstrap-table.js

@@ -667,6 +667,9 @@
       if (!this.$header.length) {
         this.$header = $(`<thead class="${this.options.theadClasses}"></thead>`).appendTo(this.$el)
       }
+      else{
+        this.$header.addClass(this.options.theadClasses);
+      }
       this.$header.find('tr').each((i, el) => {
         const column = []