Browse Source
* feat: Space add wrap
* improve
* fix
* Update index.tsx
* change doc
* change docs
* change docs
* 😂
* improve
* change doc
* improve code
* Update Item.tsx
pull/28032/head
Tom Xu
4 years ago
committed by
GitHub
6 changed files with 369 additions and 26 deletions
@ -0,0 +1,31 @@ |
|||
--- |
|||
order: 98 |
|||
title: |
|||
zh-CN: 自动换行 |
|||
en-US: Wrap |
|||
--- |
|||
|
|||
## zh-CN |
|||
|
|||
自动换行。 |
|||
|
|||
## en-US |
|||
|
|||
Auto wrap line. |
|||
|
|||
```jsx |
|||
import { Space, Button } from 'antd'; |
|||
|
|||
const Demo = () => { |
|||
return ( |
|||
<Space size={[8, 16]} wrap> |
|||
{new Array(20).fill(null).map((_, index) => ( |
|||
// eslint-disable-next-line react/no-array-index-key |
|||
<Button key={index}>Button</Button> |
|||
))} |
|||
</Space> |
|||
); |
|||
}; |
|||
|
|||
ReactDOM.render(<Demo />, mountNode); |
|||
``` |
Loading…
Reference in new issue