Browse Source

Badge: fix hidden value of zero (#10470)

杨奕 7 years ago
parent
commit
5f019e8a60
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/badge/src/main.vue

+ 1 - 1
packages/badge/src/main.vue

@@ -3,7 +3,7 @@
     <slot></slot>
     <transition name="el-zoom-in-center">
       <sup
-        v-show="!hidden && ( content || isDot )"
+        v-show="!hidden && (content || content === 0 || isDot)"
         v-text="content"
         class="el-badge__content"
         :class="{ 'is-fixed': $slots.default, 'is-dot': isDot }">