2020-02-04 17:01:19 +08:00
|
|
|
---
|
|
|
|
order: 99
|
|
|
|
debug: true
|
|
|
|
title:
|
|
|
|
zh-CN: Badge style
|
|
|
|
en-US: 测试 Badge 的样式
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
测试 Badge 的样式。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Test Badge style.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2022-05-23 14:37:16 +08:00
|
|
|
import { Badge, Radio } from 'antd';
|
2022-05-19 09:46:26 +08:00
|
|
|
import React from 'react';
|
2020-02-04 17:01:19 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-02-04 17:01:19 +08:00
|
|
|
<Radio.Group buttonStyle="solid">
|
|
|
|
<Badge count={1}>
|
2020-10-21 11:06:07 +08:00
|
|
|
<Radio.Button value={1}>Click Me</Radio.Button>
|
2020-02-04 17:01:19 +08:00
|
|
|
</Badge>
|
|
|
|
<Badge count={2}>
|
2020-10-21 11:06:07 +08:00
|
|
|
<Radio.Button value={2}>Not Me</Radio.Button>
|
2020-02-04 17:01:19 +08:00
|
|
|
</Badge>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Radio.Group>
|
2020-10-21 11:06:07 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2020-02-04 17:01:19 +08:00
|
|
|
```
|