mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
31 lines
461 B
Markdown
31 lines
461 B
Markdown
---
|
|
order: 99
|
|
debug: true
|
|
title:
|
|
zh-CN: Badge style
|
|
en-US: 测试 Badge 的样式
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
测试 Badge 的样式。
|
|
|
|
## en-US
|
|
|
|
Test Badge style.
|
|
|
|
```jsx
|
|
import { Radio, Badge } from 'antd';
|
|
|
|
export default () => (
|
|
<Radio.Group buttonStyle="solid">
|
|
<Badge count={1}>
|
|
<Radio.Button value={1}>Click Me</Radio.Button>
|
|
</Badge>
|
|
<Badge count={2}>
|
|
<Radio.Button value={2}>Not Me</Radio.Button>
|
|
</Badge>
|
|
</Radio.Group>
|
|
);
|
|
```
|