ソースを参照

Update rowStyle function.

zhixin 11 年 前
コミット
9fc3398360
1 ファイル変更1 行追加2 行削除
  1. 1 2
      src/bootstrap-table.js

+ 1 - 2
src/bootstrap-table.js

@@ -590,7 +590,6 @@
 
             html.push('<tr',
                 sprintf(' class="%s"', style.classes),
-                sprintf(' style="%s"', csses.join('; ')),
                 sprintf(' data-index="%s"', i),
                 '>'
             );
@@ -603,7 +602,7 @@
                 var text = '',
                     value = item[field],
                     type = '',
-                    style = sprintf('style="%s"', that.header.styles[j]);
+                    style = sprintf('style="%s"', csses.concat(that.header.styles[j]).join('; '));
 
                 if (typeof that.header.formatters[j] === 'function') {
                     value = that.header.formatters[j](value, item, i);