Skip to content
On this page

title组件

Hidden Title

基础用法

通常用法

compTitle组件的使用

compTitle 也可以作为独立组件使用,完整文档见 CompTitle 组件标题前缀

属性

属性名说明类型默认值
title主标题文案string''
size尺寸标识,保留字段string''
subTitle副标题文案string''
subAttrs副标题额外属性object{}
inner是否使用内部缩进booleanfalse
t上边距string / number''
b下边距string / number''
l左边距string / number''
tb同时设置上下边距string / number-
height组件高度string / number''
type标题样式类型,支持 icon / simple / formstringicon

插槽

插槽名说明
title自定义标题内容
icon自定义左侧图标
right右侧操作区
default标题后追加内容