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

31 lines
500 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.
</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>
<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-09 09:50:33 +00:00
<style>
#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
```