Elements

组件

列表 List

List:列表。Root 是列表容器,Item 是一行,Leading 放文字前的标识,Content 放标题和辅助说明,Actions 放操作。bordered 变体绘制发丝线;hoverable 变体让每一行都有悬停底色;调用方把某行设为可点击(`role="button"`)后,该行自行响应指针。

#基础用法

list/basic Vue React
  • SW
    Seal registry
    Who pressed which seal, and when.
  • LW
    Letter room
    Correspondence awaiting the registrar.
  • AB
    Archive annex
    Shelved records, fourth row, eastern cabinet.
list/interactive Vue React
  • Morning readings
    Barometer steady, ink flows well.
  • Noon deliveries
    Two crates of paper from the mill.
  • Evening closings
    The lamps are trimmed at dusk.

Nothing opened yet.

#属性

#ListRoot

属性类型默认值描述
borderedBooleanfalse是否在行间显示发丝线
hoverableBooleanfalse行悬停时是否显示浅色背景

#ListItem

纯造型的部件——自身没有属性,沿用部件结构的共享样式。

#ListLeading

纯造型的部件——自身没有属性,沿用部件结构的共享样式。

#ListActions

纯造型的部件——自身没有属性,沿用部件结构的共享样式。

#ListContent

列表行的文字区域。标题和描述分别使用具名插槽,默认插槽排在后面,用于放其他内容。

纯造型的部件——自身没有属性,沿用部件结构的共享样式。