Grid 栅格
经典 24 列响应式栅格系统(VbRow 与 VbCol),支持水平/垂直间距、列偏移、排序与多断点适配。
基础 24 列栅格
col-8
col-8
col-8
col-6
col-12 offset-6
vue
<template>
<VbRow :gutter="[16, 12]">
<VbCol :xs="24" :md="12" :lg="8">响应列</VbCol>
<VbCol :span="12" :offset="4">偏移列</VbCol>
</VbRow>
</template>API
| 组件 / 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
VbRow / gutter | 栅格间距,数组为 [水平, 垂直] | number | [number, number] | 0 |
VbRow / align | 垂直对齐 | 'top' | 'middle' | 'bottom' | 'stretch' | 'top' |
VbRow / justify | 水平排列 | 'start' | 'end' | 'center' | 'space-around' | 'space-between' | 'space-evenly' | 'start' |
VbCol / span | 占位格数(1~24) | number | — |
VbCol / offset | 左侧间隔格数 | number | 0 |
VbCol / xs sm md lg xl xxl | 响应式断点栅格数 | number | — |