Skip to content

Space 间距 ​

为子元素提供统一的间距。

基础用法 ​

vue
<template>
  <KbSpace>
    <KbButton>按钮一</KbButton>
    <KbButton>按钮二</KbButton>
  </KbSpace>
</template>

竖向与自定义间距 ​

API ​

属性类型默认值说明
direction'horizontal' | 'vertical''horizontal'排列方向
size'small' | 'medium' | 'large' | number'medium'间距(数字为 px)
align'start' | 'center' | 'end' | 'baseline''start'对齐方式
wrapbooleanfalse是否换行