mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 23:59:12 +08:00
eee3b50727
* feat: support icon only with segmented * fix: lint issue * chore: update * test: fix * test: update snapshot
35 lines
519 B
Markdown
35 lines
519 B
Markdown
---
|
|
order: 2
|
|
title:
|
|
zh-CN: 不可用
|
|
en-US: Basic
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
Segmented 不可用。
|
|
|
|
## en-US
|
|
|
|
Disabled Segmented.
|
|
|
|
```jsx
|
|
import { Segmented } from 'antd';
|
|
|
|
export default () => (
|
|
<>
|
|
<Segmented options={['Map', 'Transit', 'Satellite']} disabled />
|
|
<br />
|
|
<Segmented
|
|
options={[
|
|
'Daily',
|
|
{ label: 'Weekly', value: 'Weekly', disabled: true },
|
|
'Monthly',
|
|
{ label: 'Quarterly', value: 'Quarterly', disabled: true },
|
|
'Yearly',
|
|
]}
|
|
/>
|
|
</>
|
|
);
|
|
```
|