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)
This commit is contained in:
Lison 2017-10-07 17:41:37 +08:00
parent 2c6c41be34
commit 647ae4fa96

View file

@ -53,7 +53,7 @@
if (this.dot) {
status = true;
if (this.count) {
if (typeof this.count !== 'undefined') {
if (parseInt(this.count) === 0) {
status = false;
}