外观
KvSectionTitle
用于页面分区、表格区域和详情区块的语义标题,支持操作区和多种视觉尺寸。
实时预览
区块标题
标题和操作区会保持稳定对齐,小屏幕下操作按钮可以自然换行。
版本历史记录
运行概览
Props
| 属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
title | string | '' | 否 | 标题文字 |
headingLevel | 2 | 3 | 4 | 5 | 6 | 2 | 否 | 语义标题层级 |
size | 'small' | 'default' | 'large' | 'default' | 否 | 标题视觉尺寸 |
Slots
| 插槽 | 说明 |
|---|---|
default | 自定义标题内容 |
actions | 标题右侧操作区 |
示例代码
vue
<template>
<KvSectionTitle title="版本历史记录">
<template #actions>
<el-button>导出</el-button>
<el-button type="primary">创建版本</el-button>
</template>
</KvSectionTitle>
</template>