Badge add count slot
This commit is contained in:
parent
91806ae7f5
commit
ed0817359c
3 changed files with 25 additions and 4 deletions
|
@ -20,10 +20,14 @@
|
|||
<Badge :count="0" showZero>
|
||||
<a href="#" class="demo-badge"></a>
|
||||
</Badge>
|
||||
<Badge>
|
||||
<Icon type="md-time" slot="count" size="16" color="#ff6600" />
|
||||
<a href="#" class="demo-badge"></a>
|
||||
</Badge>
|
||||
<Button @click="setCount">set count</Button>
|
||||
<br><br>
|
||||
<Badge text="hot">
|
||||
<Button type="ghost">Hello</Button>
|
||||
<Button type="primary" ghost>Hello</Button>
|
||||
</Badge>
|
||||
<br><br>
|
||||
<div>
|
||||
|
@ -91,4 +95,4 @@
|
|||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue