mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 06:58:33 +08:00
f786f607cf
close #4747 #4290 #4176
27 lines
533 B
Markdown
27 lines
533 B
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 独立使用
|
|
en-US: Standalone
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
不包裹任何元素即是独立使用,可自定样式展现。
|
|
|
|
> 在右上角的 badge 则限定为红色。
|
|
|
|
## en-US
|
|
|
|
Used in standalone when children is empty.
|
|
|
|
````__react
|
|
import { Badge } from 'antd';
|
|
|
|
ReactDOM.render(<div>
|
|
<Badge count={25} />
|
|
<Badge count={4} style={{ backgroundColor: '#fff', color: '#999', boxShadow: '0 0 0 1px #d9d9d9 inset' }} />
|
|
<Badge count={109} style={{ backgroundColor: '#87d068' }} />
|
|
</div>, mountNode);
|
|
````
|