Browse Source

if value is 0 , it will print '0' not '-' (#3548)

RiggZh 8 years ago
parent
commit
503aaae0e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/print/bootstrap-table-print.js

+ 1 - 1
src/extensions/print/bootstrap-table-print.js

@@ -65,7 +65,7 @@
                             return  column.printFormatter.apply(column, [value, row, i]);
                         }
                         else {
-                            return  value || "-";
+                            return  typeof value === 'undefined' ? "-" : value;
                         }
                     }