# 2.4 行(Row)

行组件,与 Col 配合使用实现栅格布局

# 基础用法

<template>
  <dof-row>
    <dof-col><text>左侧</text></dof-col>
    <dof-col><text>右侧</text></dof-col>
  </dof-row>
</template>
1
2
3
4
5
6

# Attributes

Prop Type Required Default Description
gap Number N 20 直接子级 dof-col 之间的间距,单位为 px

# Slots

插槽名 说明
default 行内容(放置 Col 组件)