From 503aaae0e6a562b97728b039e3905d80a4623dca Mon Sep 17 00:00:00 2001 From: RiggZh Date: Tue, 16 Jan 2018 23:19:03 +0800 Subject: [PATCH] if value is 0 , it will print '0' not '-' (#3548) --- src/extensions/print/bootstrap-table-print.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/print/bootstrap-table-print.js b/src/extensions/print/bootstrap-table-print.js index 881d9cba7a..1254609fbe 100644 --- a/src/extensions/print/bootstrap-table-print.js +++ b/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; } }