Appearance
UnitTitle 单元标题
简介
用于页面或区块的分组标题,带有装饰性前缀图标,支持自定义标题、上下间距和图标高度。
基本用法
vue
<template>
<g-unit-title title="分组标题">
<el-button type="primary">操作</el-button>
</g-unit-title>
</template>属性说明
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| title | 标题内容 | string | '' |
| iconHeight | 前缀图标高度 | string/number | 16 |
| top | 上间距(px) | string/number | 24 |
| bottom | 下间距(px) | string/number | 10 |
插槽
| 名称 | 说明 |
|---|---|
| 默认 | 右侧内容插槽 |
</rewritten_file>