ソースを参照

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

RiggZh 8 年 前
コミット
503aaae0e6
1 ファイル変更1 行追加1 行削除
  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;
                         }
                     }