Merge pull request #3654 from xiaofengsha/pr008

Badge 组件增加 showZero 属性
This commit is contained in:
Aresn 2018-06-21 10:52:43 +08:00 committed by GitHub
commit 0ff5080733
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View file

@ -17,7 +17,11 @@
<Badge dot :count="count">
<a href="#" class="demo-badge"></a>
</Badge>
<Badge :count="0" showZero>
<a href="#" class="demo-badge"></a>
</Badge>
<Button @click="setCount">set count</Button>
</div>
</template>
<script>