-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
1,138 additions
and
1,539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: Space 间距 | ||
description: 控制组件之间的间距。 | ||
isComponent: true | ||
usage: { title: '', description: '' } | ||
spline: layout | ||
--- | ||
|
||
### 基本用法 | ||
|
||
默认为横向排列,控制相邻组件水平间距。 | ||
|
||
{{ base }} | ||
|
||
### 垂直间距 | ||
|
||
可以设置 `direction=vertical` 调整为竖向排列。 | ||
|
||
{{ vertical }} | ||
|
||
### 间距大小 | ||
|
||
可以通过 `size` 调整间距大小,自带三个可选值 `small`、`medium`、`large`。 | ||
也可以自定义设置,设置为数组时参数为 `[row-gap, column-gap]`。 | ||
|
||
{{ size }} | ||
|
||
### 对齐方式 | ||
|
||
可以通过 `align` 设置辅轴对齐方式,效果与 `align-items` 一致。 | ||
|
||
{{ align }} | ||
|
||
### 自动换行 | ||
|
||
可以通过 `breakLine` 控制是否自动换行,默认不换行。 | ||
|
||
{{ break-line }} | ||
|
||
### 设置分隔符 | ||
|
||
可以通过 `separator` 设置分隔符。 | ||
|
||
{{ separator }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.