2015-09-01 13:59:07 +08:00
|
|
|
# 讨嫌的小红点
|
|
|
|
|
|
|
|
- order: 3
|
|
|
|
|
|
|
|
没有具体的数字。
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
````jsx
|
|
|
|
var Badge = antd.Badge;
|
2015-10-02 14:23:53 +08:00
|
|
|
var Icon = antd.Icon;
|
2015-09-01 13:59:07 +08:00
|
|
|
|
2015-09-18 17:24:14 +08:00
|
|
|
React.render(<div>
|
2015-09-01 13:59:07 +08:00
|
|
|
<Badge dot={true}>
|
2015-10-02 14:23:53 +08:00
|
|
|
<Icon type="notification" />
|
2015-09-01 13:59:07 +08:00
|
|
|
</Badge>
|
2015-09-18 17:24:14 +08:00
|
|
|
<Badge dot={true}>
|
|
|
|
<a href="#">一个链接</a>
|
|
|
|
</Badge>
|
|
|
|
</div>, document.getElementById('components-badge-demo-dot'));
|
2015-09-01 13:59:07 +08:00
|
|
|
````
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.anticon-notification {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
line-height: 16px;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
</style>
|