mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 00:09:39 +08:00
7e9fe271ed
* support align * update demo & snapshot * update comment * update docs * Update components/space/index.en-US.md Co-Authored-By: 骗你是小猫咪 <darryshaw@gmail.com> * update doc Co-authored-by: 骗你是小猫咪 <darryshaw@gmail.com>
22 lines
682 B
Markdown
22 lines
682 B
Markdown
---
|
|
category: Components
|
|
type: 布局
|
|
subtitle: 间距
|
|
title: Space
|
|
cols: 1
|
|
---
|
|
|
|
设置组件之间的间距。
|
|
|
|
## 何时使用
|
|
|
|
避免组件紧贴在一起,拉开统一的空间。
|
|
|
|
## API
|
|
|
|
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
|
| --------- | -------- | ------------------------------------------ | ------------ | ----- |
|
|
| align | 对齐方式 | `start` \| `end` \|`center` \|`baseline` | - | 4.2.0 |
|
|
| direction | 间距方向 | `vertical` \| `horizontal` | `horizontal` | 4.1.0 |
|
|
| size | 间距大小 | `small` \| `middle` \| `large` \| `number` | `small` | 4.1.0 |
|