You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.0 KiB
50 lines
1.0 KiB
3 years ago
|
---
|
||
|
order: 99
|
||
|
title:
|
||
|
zh-CN: 各种混用的情况
|
||
|
en-US: Mixed usage
|
||
|
debug: true
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
测试 `count` `stauts` `color` `dot` 共用的情况。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
Using `count/dot` with custom `stauts/color`.
|
||
|
|
||
|
```jsx
|
||
|
import { Badge, Avatar } from 'antd';
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<>
|
||
|
<Badge count={5} status="success">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge count={5} status="warning">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge count={5} color="blue">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge count={5} color="#fa541c">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge dot status="success">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge dot status="warning">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge dot color="blue">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
<Badge dot color="#fa541c">
|
||
|
<Avatar shape="square" size="large" />
|
||
|
</Badge>
|
||
|
</>,
|
||
|
mountNode,
|
||
|
);
|
||
|
```
|