Skip to content

t-section

Section 分区

组件介绍

标题组件,创意标题栏,适用于展示创意作品、设计灵感的标题。

平台兼容

HarmonyH5AndroidiOS小程序UTS

基础用法

vue
<template>
  <view class="section-demo">
    <t-section title="标题" subTitle="副标题"></t-section>
    <t-section title="带标签的标题" tag="标签"></t-section>
    <t-section title="不带线条的标题" :line="false"></t-section>
  </view>
</template>

<style scoped>
.section-demo {
  padding: 40rpx;
}
</style>

Props

属性名类型默认值说明可选值
sizeString"medium"组件尺寸large, medium, small, mini
typeString"primary"组件类型info, primary, error, warning, success
disabledBooleanfalse组件是否禁用true, false
hoverBooleanfalse是否有点击效果true, false
pathString""点击组件后跳转的页面路径-
effectString"normal"组件显示主题normal, dark, light, plain
tagString""描述-
tagClassString""描述样式-
titleString""标题-
titleClassString""标题样式-
subTitleString""副标题-
subTitleClassString""副标题样式-
lineBooleantrue是否显示底部线条true, false
lineClassString""线条样式-

Events

事件名说明回调参数
click点击时触发-
transitionend动画结束时触发-
initFinished组件初始化完成触发组件的节点信息
touchstart触摸开始时触发触摸事件对象
touchend触摸结束时触发触摸事件对象
touchmove触摸移动时触发触摸事件对象
touchcancel触摸取消时触发触摸事件对象

Slots

插槽名说明
right右侧插槽,用于放置右侧内容