# 2.4 行(Row)
行组件,与 Col 配合使用实现栅格布局
# 基础用法
<template>
<dof-row>
<dof-col :span="12"><text>左侧</text></dof-col>
<dof-col :span="12"><text>右侧</text></dof-col>
</dof-row>
</template>
1
2
3
4
5
6
2
3
4
5
6
# Attributes
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
gutter | Number | N | 0 | 列间隔 |
# Slots
| 插槽名 | 说明 |
|---|---|
| default | 行内容(放置 Col 组件) |
← 2.3 首页上划 2.5 列(Col) →