ソースを参照

Take 'showHeader' option effect to the card view.

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

+ 2 - 2
src/bootstrap-table.js

@@ -851,8 +851,8 @@
 
 
                     text = that.options.cardView ?
                     text = that.options.cardView ?
                         ['<div class="card-view">',
                         ['<div class="card-view">',
-                            sprintf('<span class="title" %s>%s</span>', style,
-                                getPropertyFromOther(that.options.columns, 'field', 'title', field)),
+                            that.options.showHeader ? sprintf('<span class="title" %s>%s</span>', style,
+                                getPropertyFromOther(that.options.columns, 'field', 'title', field)) : '',
                             sprintf('<span class="value">%s</span>', value),
                             sprintf('<span class="value">%s</span>', value),
                             '</div>'].join('') :
                             '</div>'].join('') :
                         [sprintf('<td%s %s>', class_, style),
                         [sprintf('<td%s %s>', class_, style),