Badge add new slot: text
This commit is contained in:
parent
ed0817359c
commit
b321e1abca
2 changed files with 13 additions and 2 deletions
|
@ -25,6 +25,14 @@
|
|||
<a href="#" class="demo-badge"></a>
|
||||
</Badge>
|
||||
<Button @click="setCount">set count</Button>
|
||||
<Divider></Divider>
|
||||
<Badge :count="count" text="new">
|
||||
<a href="#" class="demo-badge"></a>
|
||||
</Badge>
|
||||
<Badge :count="count">
|
||||
<a href="#" class="demo-badge"></a>
|
||||
<span slot="text">hhh</span>
|
||||
</Badge>
|
||||
<br><br>
|
||||
<Badge text="hot">
|
||||
<Button type="primary" ghost>Hello</Button>
|
||||
|
@ -38,6 +46,9 @@
|
|||
<Badge status="warning" />
|
||||
<br />
|
||||
<Badge status="success" text="Success" />
|
||||
<Badge status="success">
|
||||
<strong slot="text">Success</strong>
|
||||
</Badge>
|
||||
<br />
|
||||
<Badge status="error" text="Error" />
|
||||
<br />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue