Skip to content
On this page

CompTitle 组件标题前缀

s-comp-title 是表单类组件左侧标题前缀,用来和 s-inputs-selects-input-number 等输入控件拼接展示。单独使用时会保持和 Element Plus 输入框一致的高度。

Hidden Title

基础用法:<s-comp-title title="默认" />

属性事件插槽简介

基础用法

成华主题

石景山主题

API

属性名说明类型默认值
title标题文案;为空时不渲染组件string''
compTitleStyle标题容器样式,支持 width 并会经过 processWidth 处理object{}
theme主题样式default / chenghua / shijingshandefault

透传属性

属性名说明类型默认值
size尺寸,跟随 Element Plus 输入框尺寸large / default / smalldefault
class自定义类名string / object / array-
style自定义样式string / object / array-

说明

  • s-comp-title 默认用于输入类组件的左侧标题区域。
  • 默认高度为 var(--el-component-size, 32px)small24pxlarge40px
  • 和输入框拼接时,通常需要把后面的输入框左侧圆角置为 0

思云博智私有前端组件库