Commit 1ca07948c7ce15031b0a5ee6e4908f358a34b70a

Authored by xiaofengsha
1 parent d3905b35

增加Badge组件showZero属性的demo

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
examples/routers/badge.vue
@@ -17,7 +17,11 @@ @@ -17,7 +17,11 @@
17 <Badge dot :count="count"> 17 <Badge dot :count="count">
18 <a href="#" class="demo-badge"></a> 18 <a href="#" class="demo-badge"></a>
19 </Badge> 19 </Badge>
  20 + <Badge :count="0" showZero>
  21 + <a href="#" class="demo-badge"></a>
  22 + </Badge>
20 <Button @click="setCount">set count</Button> 23 <Button @click="setCount">set count</Button>
  24 +
21 </div> 25 </div>
22 </template> 26 </template>
23 <script> 27 <script>