Browse Source

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

fixes #1993
zhixin 10 years ago
parent
commit
4a3910278a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/bootstrap-table.js

+ 4 - 0
src/bootstrap-table.js

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