浏览代码

theadClasses is not set by default

If a thead exists and $.BootstrapTable.DEFAULTS.theadClasses is set the class is never set on init.
Greg 6 年之前
父节点
当前提交
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 = []