# List 列表

最基础的列表展示,可承载文字、列表、图片、段落,常用于后台数据展示页面。

# 代码演示

# API

# List Attributes

参数 说明 类型 可选值 默认值 Version
size 尺寸 String 'large' | 'medium' | 'small' medium
split 是否展示分割线 Boolean - false
border 是否显示边框 Boolean - false
header 列表头部 String - -
footer 列表尾部 String - -

# List Slots

名称 说明 Version
header 自定义列表头部
footer 自定义列表尾部

# ListItem Attributes

参数 说明 类型 可选值 默认值 Version
stripe 是否显示斑马纹 Boolean - false

# ListItem Slots

名称 说明 Version
action 列表操作组,位置在卡片最右侧

# ListItemMeta Attributes

参数 说明 类型 可选值 默认值 Version
avatar 列表元素的图标 String - -
avatar-size 列表元素头像的大小 Number | String number | 'large' | 'medium' | 'small' 'large'
title 列表元素的标题 String - -
description 列表元素的描述内容 String - -

# ListItemMeta Slots

名称 说明 Version
avatar 自定义列表元素的图标
title 自定义列表元素的标题
description 自定义列表元素的描述内容
上次更新: 3/12/2025, 10:44:23 AM