mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
29 lines
393 B
Markdown
29 lines
393 B
Markdown
---
|
|
order: 3
|
|
title: 讨嫌的小红点
|
|
---
|
|
|
|
没有具体的数字。
|
|
|
|
````jsx
|
|
import { Badge, Icon } from 'antd';
|
|
|
|
ReactDOM.render(<div>
|
|
<Badge dot>
|
|
<Icon type="notification" />
|
|
</Badge>
|
|
<Badge dot>
|
|
<a href="#">一个链接</a>
|
|
</Badge>
|
|
</div>, mountNode);
|
|
````
|
|
|
|
<style>
|
|
.anticon-notification {
|
|
width: 16px;
|
|
height: 16px;
|
|
line-height: 16px;
|
|
font-size: 16px;
|
|
}
|
|
</style>
|