# 5.13 面板(Board)
面板组件,用于展示内容区域,支持标题和副标题
# 基础用法
<template>
<dof-board title="标题" subtitle="副标题">
<text>面板内容</text>
</dof-board>
</template>
1
2
3
4
5
2
3
4
5
# Attributes
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
title | String | N | '' | 面板标题 |
subtitle | String | N | '' | 面板副标题 |
board-body-style | Object | N | {} | 面板内容区域自定义样式 |
dof-board-wrapper-style | Object | N | {} | 面板外层包裹容器自定义样式 |
# Slots
| 插槽名 | 说明 |
|---|---|
| default | 面板内容 |
| header | 面板头部自定义内容 |