ant-design-vue/components/badge/demo/dot.md

35 lines
627 B
Markdown
Raw Normal View History

2018-02-07 10:44:11 +00:00
<cn>
#### 讨嫌的小红点
没有具体的数字。
</cn>
<us>
#### Red badge
This will simply display a red badge, without a specific count.
2018-04-09 09:01:34 +00:00
If count equals 0, it won't display the dot.
2018-02-07 10:44:11 +00:00
</us>
```html
<template>
2018-03-09 09:50:33 +00:00
<div id="components-badge-demo-dot">
2018-02-07 10:44:11 +00:00
<a-badge dot>
<a-icon type="notification" />
</a-badge>
2018-04-09 09:01:34 +00:00
<a-badge :count="0" dot>
<a-icon type="notification" />
</a-badge>
2018-02-07 10:44:11 +00:00
<a-badge dot>
<a href="#">Link something</a>
2018-03-09 09:50:33 +00:00
</a-badge>
</div>
2018-02-07 10:44:11 +00:00
</template>
2018-03-11 07:27:34 +00:00
<style scoped>
2018-03-09 09:50:33 +00:00
#components-badge-demo-dot .anticon-notification {
width: 16px;
height: 16px;
line-height: 16px;
font-size: 16px;
}
</style>
2018-02-07 10:44:11 +00:00
```