qingwei.li před 9 roky
rodič
revize
cc0934d89b

+ 2 - 0
packages/badge/src/main.vue

@@ -20,6 +20,8 @@ export default {
 
   computed: {
     content() {
+      if (this.dot) return;
+
       const value = this.value;
       const max = this.max;
 

+ 1 - 1
packages/theme-default/src/badge.css

@@ -18,7 +18,7 @@
       padding: 0 var(--badge-padding);
       text-align: center;
       white-space: nowrap;
-      border:1px solid #fff;
+      border: 1px solid #fff;
 
       @when fixed {
         position: absolute 0 calc(var(--badge-size) / 2 + 1) * *;