For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/zh/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/zh/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/zh/components/list.md.
v0.0.57
  • 简体中文
  • List

    数据展示@rockshin/tao-ui

    展示重复记录,支持元信息、操作、分页和响应式网格。

    何时使用

    适合比纯文本丰富、又不需要表格列对齐的内容。需要明确的虚拟滚动时使用 Listy。

    示例

    元信息与头像

    List.Item.Meta 组合头像、标题和描述。

    390 × 640
    TSX

    垂直内容与操作

    itemLayout="vertical" 适合文章式内容,extra 提供独立的辅助区域。

    • Designing clear interfaces

      Updated today · 5 min read

      Keep actions close to the information they affect, and use a consistent visual hierarchy.

      Guide
    TSX

    分页与每页条数

    List 按当前页切分 dataSource。服务端分页时应传入当前页记录和明确的 total。

    • Release note 1
    • Release note 2
    • Release note 3
    • Release note 4
    • 24 notes
    • Go topage
    TSX

    响应式网格

    网格从手机的一列调整为宽视口的三列。

    390 × 640
    TSX

    加载、空态与加载更多

    此例追加本地记录。真实请求可使用 loading,locale.emptyText 用于业务空态。

    • No activity yet
    TSX

    紧凑列表与语义样式

    split= 移除行分隔线,header 和 footer 可独立定制。

    Recent workspaces
    • Atlas
    • Northstar
    • Studio
    All changes saved
    TSX

    API

    List

    属性说明类型默认值