2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 3
|
2016-07-11 11:45:42 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 讨嫌的小红点
|
|
|
|
en-US: Red badge
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-09-01 13:59:07 +08:00
|
|
|
|
2016-07-11 11:45:42 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-09-01 13:59:07 +08:00
|
|
|
没有具体的数字。
|
|
|
|
|
2016-07-11 11:45:42 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
This will simply display a red badge, without a specific count.
|
|
|
|
|
2015-09-01 13:59:07 +08:00
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Badge, Icon } from 'antd';
|
2015-09-01 13:59:07 +08:00
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(<div>
|
2015-11-25 17:47:55 +08:00
|
|
|
<Badge dot>
|
2015-10-02 14:23:53 +08:00
|
|
|
<Icon type="notification" />
|
2015-09-01 13:59:07 +08:00
|
|
|
</Badge>
|
2015-11-25 17:47:55 +08:00
|
|
|
<Badge dot>
|
2015-09-18 17:24:14 +08:00
|
|
|
<a href="#">一个链接</a>
|
|
|
|
</Badge>
|
2015-12-29 12:08:58 +08:00
|
|
|
</div>, mountNode);
|
2015-09-01 13:59:07 +08:00
|
|
|
````
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.anticon-notification {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
line-height: 16px;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
</style>
|