Commit 1ca07948c7ce15031b0a5ee6e4908f358a34b70a
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 | 17 | <Badge dot :count="count"> |
18 | 18 | <a href="#" class="demo-badge"></a> |
19 | 19 | </Badge> |
20 | + <Badge :count="0" showZero> | |
21 | + <a href="#" class="demo-badge"></a> | |
22 | + </Badge> | |
20 | 23 | <Button @click="setCount">set count</Button> |
24 | + | |
21 | 25 | </div> |
22 | 26 | </template> |
23 | 27 | <script> | ... | ... |