Commit 647ae4fa96f3bfcc7c4bf0225cb41465867a566b

Authored by Lison
1 parent 2c6c41be

update component badge

Resolved the bug of badge when setted 'dot' attribute, the dot does not hide after setting ': count = "0" '  (the type of 0 is number not string)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/badge/badge.vue
@@ -53,7 +53,7 @@ @@ -53,7 +53,7 @@
53 53
54 if (this.dot) { 54 if (this.dot) {
55 status = true; 55 status = true;
56 - if (this.count) { 56 + if (typeof this.count !== 'undefined') {
57 if (parseInt(this.count) === 0) { 57 if (parseInt(this.count) === 0) {
58 status = false; 58 status = false;
59 } 59 }