Skip to content

Layout

演示

Layout 跨端示例与演示

经营概览本周
成交金额¥86,420+12.8%
订单128
访客2,846
转化率4.5%
退款6

基础用法

vue
<template>
  <VRow>
    <VCol :span="8">span 8</VCol>
    <VCol :span="8">span 8</VCol>
    <VCol :span="8">span 8</VCol>
  </VRow>
</template>

间距

vue
<template>
  <VRow :gutter="[8, 12]">
    <VCol :span="12">span 12</VCol>
    <VCol :span="12">span 12</VCol>
  </VRow>
</template>

偏移与对齐

vue
<template>
  <VRow justify="space-between">
    <VCol :span="6">left</VCol>
    <VCol :span="6">right</VCol>
  </VRow>

  <VRow>
    <VCol :span="10" :offset="2">offset 2</VCol>
  </VRow>
</template>

Row Props

Prop类型默认值描述
gutternumber | string | [number | string, number | string]undefined栅格间距
justify'start' | 'end' | 'center' | 'space-around' | 'space-between''start'主轴对齐
align'top' | 'middle' | 'bottom' | 'stretch''top'交叉轴对齐
wrapbooleantrue是否换行

Col Props

Prop类型默认值描述
spannumber | string24栅格占位
offsetnumber | string0左侧偏移