2020-02-10 11:32:37 +08:00
|
|
|
---
|
|
|
|
order: 99
|
|
|
|
title:
|
|
|
|
zh-CN: 废弃的 Block 组
|
|
|
|
en-US: Deprecated Button Group
|
|
|
|
debug: true
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
Debug usage
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Debug usage
|
|
|
|
|
|
|
|
```jsx
|
2020-04-25 18:03:35 +08:00
|
|
|
import { Button, Tooltip } from 'antd';
|
|
|
|
import { DownloadOutlined } from '@ant-design/icons';
|
2020-02-10 11:32:37 +08:00
|
|
|
|
|
|
|
function getGroup(props) {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<Button.Group {...props}>
|
|
|
|
<Button type="primary">Button 1</Button>
|
|
|
|
<Button type="primary">Button 2</Button>
|
2020-04-25 18:03:35 +08:00
|
|
|
<Tooltip title="Tooltip">
|
|
|
|
<Button type="primary" icon={<DownloadOutlined />} disabled />
|
|
|
|
</Tooltip>
|
|
|
|
<Tooltip title="Tooltip">
|
|
|
|
<Button type="primary" icon={<DownloadOutlined />} />
|
|
|
|
</Tooltip>
|
2020-02-10 11:32:37 +08:00
|
|
|
</Button.Group>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2022-04-03 23:27:45 +08:00
|
|
|
export default () => (
|
2020-06-11 15:24:24 +08:00
|
|
|
<>
|
2020-02-10 11:32:37 +08:00
|
|
|
{getGroup({ size: 'small' })}
|
2020-04-25 18:03:35 +08:00
|
|
|
<br />
|
2020-02-10 11:32:37 +08:00
|
|
|
{getGroup()}
|
2020-04-25 18:03:35 +08:00
|
|
|
<br />
|
2020-02-10 11:32:37 +08:00
|
|
|
{getGroup({ size: 'large' })}
|
2022-04-03 23:27:45 +08:00
|
|
|
</>
|
2020-02-10 11:32:37 +08:00
|
|
|
);
|
|
|
|
```
|
2020-04-25 18:03:35 +08:00
|
|
|
|
|
|
|
```css
|
|
|
|
#components-button-demo-legacy-group .ant-btn {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
```
|