logoNamu Design

⌘ K
  • 设计
  • 研发
  • 组件
  • 博客
  • 资源
  • 国内镜像
1.0.0
  • 组件总览
  • 通用
    • Button按钮
    • FloatButton悬浮按钮New
    • Icon图标
    • Typography排版
  • 布局
    • Divider分割线
    • Grid栅格
    • Layout布局
    • Space间距
  • 导航
    • Anchor锚点
    • Breadcrumb面包屑
    • Dropdown下拉菜单
    • Menu导航菜单
    • Pagination分页
    • Steps步骤条
  • 数据录入
    • AutoComplete自动完成
    • Cascader级联选择
    • Checkbox多选框
    • ColorPicker颜色选择器New
    • DatePicker日期选择框
    • Form表单
    • Input输入框
    • InputNumber数字输入框
    • Mentions提及
    • Radio单选框
    • Rate评分
    • Select选择器
    • Slider滑动输入条
    • Switch开关
    • TimePicker时间选择框
    • Transfer穿梭框
    • TreeSelect树选择
    • Upload上传
  • 数据展示
    • Avatar头像
    • Badge徽标数
    • Calendar日历
    • Card卡片
    • Carousel走马灯
    • Collapse折叠面板
    • Descriptions描述列表
    • Empty空状态
    • Image图片
    • List列表
    • Popover气泡卡片
    • QRCode二维码New
    • Segmented分段控制器
    • Statistic统计数值
    • Table表格
    • Tabs标签页
    • Tag标签
    • Timeline时间轴
    • Tooltip文字提示
    • Tour漫游式引导New
    • Tree树形控件
  • 反馈
    • Alert警告提示
    • Drawer抽屉
    • Message全局提示
    • Modal对话框
    • Notification通知提醒框
    • Popconfirm气泡确认框
    • Progress进度条
    • Result结果
    • Skeleton骨架屏
    • Spin加载中
    • Watermark水印New
  • 其他
    • Affix固钉
    • App包裹组件New
    • ConfigProvider全局化配置
何时使用
代码演示
简单列表
基础列表
加载更多
竖排列表样式
分页设置
栅格列表
响应式的栅格列表
滚动加载
滚动加载无限长列表
API
List
pagination
List grid props
List.Item
List.Item.Meta
Design Token

List
列表

  • Image图片Popover气泡卡片

    相关资源

    Namu Design Charts
    Namu Design Pro
    Namu Design Pro Components
    Namu Design Mobile
    Namu Design Mini
    Namu Design Landing-首页模板集
    Scaffolds-脚手架市场
    Umi-React 应用开发框架
    dumi-组件/文档研发工具
    qiankun-微前端框架
    ahooks-React Hooks 库
    Ant Motion-设计动效
    国内镜像站点 🇨🇳

    社区

    Awesome Namu Design
    Medium
    Twitter
    yuqueNamu Design 语雀专栏
    Namu Design 知乎专栏
    体验科技专栏
    seeconfSEE Conf-蚂蚁体验科技大会
    加入我们

    帮助

    GitHub
    更新日志
    常见问题
    报告 Bug
    议题
    讨论区
    StackOverflow
    SegmentFault

    Ant XTech更多产品

    yuque语雀-构建你的数字花园
    AntVAntV-数据可视化解决方案
    EggEgg-企业级 Node.js 框架
    kitchenKitchen-Sketch 工具集
    xtech蚂蚁体验科技
    主题编辑器
    Made with ❤ by
    蚂蚁集团和 Namu Design 开源社区

    通用列表。

    何时使用

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

    代码演示

    Default Size
    Header
    • [ITEM] Racing car sprays burning fuel into crowd.
    • [ITEM] Japanese princess to wed commoner.
    • [ITEM] Australian walks 100km after outback crash.
    • [ITEM] Man charged over missing wedding girl.
    • [ITEM] Los Angeles battles huge wildfires.
    Footer
    Small Size
    Header
    • Racing car sprays burning fuel into crowd.
    • Japanese princess to wed commoner.
    • Australian walks 100km after outback crash.
    • Man charged over missing wedding girl.
    • Los Angeles battles huge wildfires.
    Footer
    Large Size
    Header
    • Racing car sprays burning fuel into crowd.
    • Japanese princess to wed commoner.
    • Australian walks 100km after outback crash.
    • Man charged over missing wedding girl.
    • Los Angeles battles huge wildfires.
    Footer
    简单列表

    列表拥有大、中、小三种尺寸。

    通过设置 size 为 large small 分别把按钮设为大、小尺寸。若不设置 size,则尺寸为中。

    可通过设置 header 和 footer,来自定义列表头部和尾部。

    expand codeexpand code
    • Namu Design Title 1

      Namu Design, a design language for background applications, is refined by Ant UED Team
    • Namu Design Title 2

      Namu Design, a design language for background applications, is refined by Ant UED Team
    • Namu Design Title 3

      Namu Design, a design language for background applications, is refined by Ant UED Team
    • Namu Design Title 4

      Namu Design, a design language for background applications, is refined by Ant UED Team
    基础列表

    基础列表。

    expand codeexpand code
    加载更多

    可通过 loadMore 属性实现加载更多功能。

    expand codeexpand code
    • Namu Design part 0

      Namu Design, a design language for background applications, is refined by Ant UED Team.
      We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently.
      • 156
      • 156
      • 2
      logo
    • Namu Design part 1

      Namu Design, a design language for background applications, is refined by Ant UED Team.
      We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently.
      • 156
      • 156
      • 2
      logo
    • Namu Design part 2

      Namu Design, a design language for background applications, is refined by Ant UED Team.
      We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently.
      • 156
      • 156
      • 2
      logo
    Namu Design footer part
    • 1
    • 2
    • 3
    • 4
    • 5
    • •••
    • 8
    竖排列表样式

    通过设置 itemLayout 属性为 vertical 可实现竖排列表样式。

    expand codeexpand code
    Pagination Position:
    Pagination Align:
    • Namu Design Title 1

      Namu Design, a design language for background applications, is refined by Ant UED Team
    • Namu Design Title 2

      Namu Design, a design language for background applications, is refined by Ant UED Team
    • Namu Design Title 3

      Namu Design, a design language for background applications, is refined by Ant UED Team
    • Namu Design Title 4

      Namu Design, a design language for background applications, is refined by Ant UED Team
    • 1
    分页设置

    可通过 pagination 属性使用列表分页,并进行设置。

    expand codeexpand code
    Title 1
    Card content
    Title 2
    Card content
    Title 3
    Card content
    Title 4
    Card content
    栅格列表

    可以通过设置 List 的 grid 属性来实现栅格列表,column 可设置期望显示的列数。

    expand codeexpand code
    Title 1
    Card content
    Title 2
    Card content
    Title 3
    Card content
    Title 4
    Card content
    Title 5
    Card content
    Title 6
    Card content
    响应式的栅格列表

    响应式的栅格列表。尺寸与 Layout Grid 保持一致。

    expand codeexpand code
    暂无数据

    滚动加载

    结合 react-infinite-scroll-component 实现滚动自动加载列表。

    expand codeexpand code
    滚动加载无限长列表

    结合 rc-virtual-list 实现滚动加载无限长列表,能够提高数据量大时候长列表的性能。

    expand codeexpand code

    API

    通用属性参考:通用属性

    另外我们封装了 ProList,在 antd List 之上扩展了更多便捷易用的功能,比如多选,展开等功能,使用体验贴近 Table,欢迎尝试使用。

    List

    参数说明类型默认值版本
    bordered是否展示边框booleanfalse
    dataSource列表数据源any[]-
    footer列表底部ReactNode-
    grid列表栅格配置object-
    header列表头部ReactNode-
    itemLayout设置 List.Item 布局, 设置成 vertical 则竖直样式显示, 默认横排string-
    loading当卡片内容还在加载中时,可以用 loading 展示一个占位boolean | object (更多)false
    loadMore加载更多ReactNode-
    locale默认文案设置,目前包括空数据文案object{emptyText: 暂无数据}
    pagination对应的 pagination 配置, 设置 false 不显示boolean | objectfalse
    renderItem当使用 dataSource 时,可以用 renderItem 自定义渲染列表项(item) => ReactNode-
    rowKey当 renderItem 自定义渲染列表项有效时,自定义每一行的 key 的获取方式keyof T | (item: T) => React.Key"key"
    sizelist 的尺寸default | large | smalldefault
    split是否展示分割线booleantrue

    pagination

    分页的配置项。

    参数说明类型默认值
    position指定分页显示的位置top | bottom | bothbottom
    align指定分页对齐的位置start | center | endend

    更多配置项,请查看 Pagination。

    List grid props

    参数说明类型默认值版本
    column列数number-
    gutter栅格间隔number0
    xs<576px 展示的列数number-
    sm≥576px 展示的列数number-
    md≥768px 展示的列数number-
    lg≥992px 展示的列数number-
    xl≥1200px 展示的列数number-
    xxl≥1600px 展示的列数number-

    List.Item

    参数说明类型默认值版本
    actions列表操作组,根据 itemLayout 的不同, 位置在卡片底部或者最右侧Array<ReactNode>-
    extra额外内容, 通常用在 itemLayout 为 vertical 的情况下, 展示右侧内容; horizontal 展示在列表元素最右侧ReactNode-

    List.Item.Meta

    参数说明类型默认值版本
    avatar列表元素的图标ReactNode-
    description列表元素的描述内容ReactNode-
    title列表元素的标题ReactNode-

    Design Token

    组件 Token

    全局 Token