浏览代码

fix(js): fix cardVisible doesn't work bug

fixes #1993
zhixin 10 年之前
父节点
当前提交
4a3910278a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/bootstrap-table.js

+ 4 - 0
src/bootstrap-table.js

@@ -1546,6 +1546,10 @@
                     return;
                     return;
                 }
                 }
 
 
+                if (that.options.cardView && (!column.cardVisible)) {
+                    return;
+                }
+
                 style = sprintf('style="%s"', csses.concat(that.header.styles[j]).join('; '));
                 style = sprintf('style="%s"', csses.concat(that.header.styles[j]).join('; '));
 
 
                 value = calculateObjectValue(column,
                 value = calculateObjectValue(column,