mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 15:19:58 +08:00
24 lines
379 B
Markdown
24 lines
379 B
Markdown
|
---
|
||
|
order: 10
|
||
|
title:
|
||
|
zh-CN: Block 分段选择器
|
||
|
en-US: Block Segmented
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
`block` 属性使其适合父元素宽度。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
`block` property will make the `Segmented` fit to its parent width.
|
||
|
|
||
|
```jsx
|
||
|
import { Segmented } from 'antd';
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<Segmented block options={[123, 456, 'longtext-longtext-longtext-longtext']} />,
|
||
|
mountNode,
|
||
|
);
|
||
|
```
|