Skip to content

Grid 栅格

24 栏栅格布局系统。

基础用法

span=12
span=12
8
8
8
6
18
vue
<ARow :gutter="12">
  <ACol :span="12">col-12</ACol>
  <ACol :span="12">col-12</ACol>
</ARow>

偏移

8
8 offset 8
vue
<ARow :gutter="12">
  <ACol :span="8">8</ACol>
  <ACol :span="8" :offset="8">8 + offset</ACol>
</ARow>

API

Row Props

属性类型默认值说明
gutternumber | [number, number]0水平/垂直间距
align'start' | 'end' | 'center' | 'stretch'垂直对齐
justify'start' | 'end' | 'center' | 'space-between' | 'space-around' | 'space-evenly'水平分布
wrapbooleantrue是否换行

Col Props

属性类型默认值说明
spannumber24占位格数
offsetnumber0偏移格数

Released under the MIT License.