ソースを参照

Update bootstrap-table.js

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

+ 2 - 3
src/bootstrap-table.js

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