Browse Source

fix(tabbar): 标签栏右上角数字角标等于100时不显示 (#590) @yuyuko233

richard1015 4 years ago
parent
commit
bcaab0fb19
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/tabbar/tabbar.vue

+ 1 - 1
src/packages/tabbar/tabbar.vue

@@ -9,7 +9,7 @@
     >
       <span class="icon-box">
         <b class="tips num" v-if="value.num && value.num <= 99">{{ value.num }}</b>
-        <b class="tips" v-else-if="value.num && value.num > 100">{{ '...' }}</b>
+        <b class="tips" v-else-if="value.num && value.num >= 100">{{ '...' }}</b>
         <template v-if="value.icon">
           <div class="icon" :style="{ backgroundImage: `url(${index == currIndex ? value.activeIcon : value.icon})` }"></div>
         </template>