浏览代码

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 ?
                         ['<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),
                             '</div>'].join('') :
                         [sprintf('<td%s %s>', class_, style),