列表

通用列表。

何时使用

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

代码演示

Ant Design Title 1

Ant Design, a design language for background applications, is refined by Ant UED Team

Ant Design Title 2

Ant Design, a design language for background applications, is refined by Ant UED Team

Ant Design Title 3

Ant Design, a design language for background applications, is refined by Ant UED Team

Ant Design Title 4

Ant Design, a design language for background applications, is refined by Ant UED Team

基础列表

基础列表。

expand code expand code
Title 1
Card content
Title 2
Card content
Title 3
Card content
Title 4
Card content

栅格列表

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

expand code expand code

Ouellet

Ant Design, a design language for background applications, is refined by Ant UED Team
content

Centeno

Ant Design, a design language for background applications, is refined by Ant UED Team
content

Nguyen

Ant Design, a design language for background applications, is refined by Ant UED Team
content

Vintoniv

Ant Design, a design language for background applications, is refined by Ant UED Team
content

Chevalier

Ant Design, a design language for background applications, is refined by Ant UED Team
content

加载更多

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

expand code expand 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 code expand code

Default 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.

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.

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.

简单列表

列表拥有大、中、小三种尺寸。
通过设置 sizelarge small 分别把按钮设为大、小尺寸。若不设置 size,则尺寸为中。
可通过设置 headerfooter,来自定义列表头部和尾部。

expand code expand code

ant design vue part 0

Ant 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

ant design vue part 1

Ant 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

ant design vue part 2

Ant 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

竖排列表样式

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

expand code expand code

Francois

alessia.francois@example.com
Content

Hoffman

sarah.hoffman@example.com
Content

Barnaby

adam.barnaby@example.com
Content

Stenhaug

nadia.stenhaug@example.com
Content

Moore

zachary.moore@example.com
Content

滚动加载

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

expand code expand code

Cabrera

eugenia.cabrera@example.com
Content 0

حیدری

ysn.hydry@example.com
Content 1

González

ines.gonzalez@example.com
Content 2

Lima

mireia.lima@example.com
Content 3

Hiremath

bakhshi.hiremath@example.com
Content 4

Hale

emma.hale@example.com
Content 5

Sales

talita.sales@example.com
Content 6

Otoole

deborah.otoole@example.com
Content 7

Fernandez

gabin.fernandez@example.com
Content 8

Babacan

meral.babacan@example.com
Content 9

滚动加载无限长列表

结合 vue-virtual-scroller 实现滚动加载无限长列表,带有虚拟化(virtualization)功能,能够提高数据量大时候长列表的性能。
可以结合 vue-infinite-scroll 实现滚动自动加载无限长列表。
virtualized 是在大数据列表中应用的一种技术,主要是为了减少不可见区域不必要的渲染从而提高性能,特别是数据量在成千上万条效果尤为明显。

expand code expand code

API

List

参数 说明 类型 默认值
bordered 是否展示边框 boolean false
footer 列表底部 string|slot -
grid 列表栅格配置 object -
header 列表头部 string|slot -
itemLayout 设置 List.Item 布局, 设置成 vertical 则竖直样式显示, 默认横排 string -
loading 当卡片内容还在加载中时,可以用 loading 展示一个占位 boolean|object false
loadMore 加载更多 string|slot -
locale 默认文案设置,目前包括空数据文案 object emptyText: '暂无数据'
pagination 对应的 pagination 配置, 设置 false 不显示 boolean|object false
size list 的尺寸 default | middle | small default
split 是否展示分割线 boolean true
renderItem 自定义Item函数,也可使用slot="renderItem" 和 slot-scope="item, index" (item, index) => vNode
rowKey 各项 key 的取值,可以是字符串或一个函数 item => string|number

pagination

分页的配置项。

参数 说明 类型 默认值
position 指定分页显示的位置 'top' | 'bottom' | 'both' 'bottom'

更多配置项,请查看 Pagination

List grid props

参数 说明 类型 默认值
column 列数 number oneOf [ 1, 2, 3, 4, 6, 8, 12, 24] -
gutter 栅格间隔 number 0
xs <576px 展示的列数 number -
sm ≥576px 展示的列数 number -
md ≥768px 展示的列数 number -
lg ≥992px 展示的列数 number -
xl ≥1200px 展示的列数 number -
xxl ≥1600px 展示的列数 number -

List.Item

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

List.Item.Meta

参数 说明 类型 默认值
avatar 列表元素的图标 slot -
description 列表元素的描述内容 string|slot -
title 列表元素的标题 string|slot -
  Comment 评论Popover 气泡卡片