Badge add text prop
This commit is contained in:
parent
0ff5080733
commit
fdafcd2cc5
4 changed files with 28 additions and 6 deletions
|
@ -14,14 +14,17 @@
|
|||
</style>
|
||||
<template>
|
||||
<div>
|
||||
<Badge dot :count="count">
|
||||
<Badge :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>
|
||||
|
||||
<br><br>
|
||||
<Badge text="hot">
|
||||
<Button type="ghost">Hello</Button>
|
||||
</Badge>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -29,7 +32,7 @@
|
|||
props: {},
|
||||
data () {
|
||||
return {
|
||||
count: 50
|
||||
count: 5
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue