跳到主要内容
版本:v8

列表标题组件

shadow

列表标题是一种块级元素,用于描述列表的内容。与项目分隔线不同,列表标题应仅在一组项目的顶部使用一次。

基本用法

列表标题中的按钮

在列表标题中放置一个按钮有助于显示列表的部分内容,并通过按钮跳转到完整列表。

列表标题分隔线

默认情况下,列表标题不显示底部边框。可以将 lines 属性修改为 "full""inset",分别显示全宽度边框或带有左侧内边距的嵌入边框。

主题定制

颜色

CSS 自定义属性

属性

color

DescriptionThe color to use from your application's color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information on colors, see theming.
Attributecolor
Type"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string | undefined
Defaultundefined

lines

DescriptionHow the bottom border should be displayed on the list header.
Attributelines
Type"full" | "inset" | "none" | undefined
Defaultundefined

mode

DescriptionThe mode determines which platform styles to use.

This is a virtual property that is set once during initialization and will not update if you change its value after the initial render.
Attributemode
Type"ios" | "md"
Defaultundefined

事件

No events available for this component.

方法

No public methods available for this component.

CSS Shadow Parts

NameDescription
innerThe inner wrapper element that arranges the list header content.

CSS 自定义属性

NameDescription
--backgroundBackground of the list header
--border-colorColor of the list header border
--border-styleStyle of the list header border
--border-widthWidth of the list header border
--colorColor of the list header text
--inner-border-widthWidth of the inner list header border

插槽

No slots available for this component.