Skip to content

Space 间距 ​

设置组件之间的间距。

何时使用 ​

  • 避免组件紧贴在一起,拉开统一的空间。
  • 适合行内元素的水平间距。
  • 可以设置各种水平对齐方式。

基本使用 ​

垂直间距 ​

间距大小 ​

分隔符 ​

Space 参数 ​

参数类型默认值说明
align'start' / 'end' / 'center' / 'baseline'--对齐方式
direction'horizontal' / 'vertical''horizontal'间距方向
size'small' / 'middle' / 'large' / number / [number, number]'small'间距大小
wrapbooleanfalse自动换行(仅水平方向)
splitstring--设置拆分

Released under the MIT License.