# 2.5 列(Col)
列组件,与 Row 配合使用实现栅格布局
# 基础用法
<template>
<dof-row>
<dof-col><text>左侧</text></dof-col>
<dof-col><text>右侧</text></dof-col>
</dof-row>
</template>
1
2
3
4
5
6
2
3
4
5
6
# Attributes
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
| 无 | - | - | - | 不支持 span 等宽度属性;列宽度由 flex: 1 自动均分,相邻列间距继承自父级 dof-row 的 gap 属性 |
# Slots
| 插槽名 | 说明 |
|---|---|
| default | 列内容 |