2.0.10 • Published 14 days ago

@ant-design/pro-list v2.0.10

Weekly downloads
1,381
License
MIT
Repository
github
Last release
14 days ago

🏆 Use Ant Design List like a Pro!

ProList (高级列表)

ProList 在 antd 的 list 支持了一些功能,比如 多选,展开等功能,使用体验贴近 table。

何时使用

在完成一个标准的列表时即可使用。

API

ProList

ProList 与 antd 的 List 相比,主要增加了 rowSelection 和 expandable 来支持选中与筛选

参数说明类型默认值
rowSelection与 antd 相同的配置object |booleanfalse
expandable与 antd 相同的配置object | false-
showActions何时展示 actions'hover' | 'always'always
rowKey行的 key,一般是行 idstring | (row,index)=>string"id"
renderItem现在的 renderItem 需要返回 ProList.Item 的 props,而不是 domItemProps-
listRenderItem这是 antd 的 renderItem 的别名(row,index)=> Node-

ProList.Item

如果你的 dataSource 包含 children,我们会将其打平传入到 renderItem 中,但是包含 children 的项会转化了 group 的样式,只支持 title 和 actions 的属性。

参数说明类型默认值
type列表项的预设样式new | top-
title列表项的主标题ReactNode-
subTitle列表项的副标题ReactNode-
checkbox列表的选择框React.ReactNode-
loading列表项是否在加载中React.ReactNode-
avatar列表项的头像AvatarProps | string-
actions操作列表项React.ReactNode[]-
description列表项的描述,与 title 不在一行React.ReactNode[]-
expandedRowClassName额外展开的 cssstring-
expand列表项是否展开boolean-
onExpand列表项展开收起的回调(expand: boolean) => void-
expandable列表项展开配置object-
1.21.78

2 months ago

1.21.79

2 months ago

2.0.10

14 days ago

2.0.3

1 month ago

2.0.2

1 month ago

2.0.5

27 days ago

2.0.4

30 days ago

2.0.7

22 days ago

2.0.6

26 days ago

2.0.9

15 days ago

2.0.8

19 days ago

2.0.1

1 month ago

2.0.0

1 month ago

1.21.80

1 month ago

1.21.81

1 month ago

1.21.82

1 month ago

1.21.83

1 month ago

1.21.85

29 days ago

1.21.65

4 months ago

1.21.66

4 months ago

1.21.67

4 months ago

1.21.68

4 months ago

1.21.69

4 months ago

1.21.75

3 months ago

1.21.76

3 months ago

1.21.77

2 months ago

1.21.70

3 months ago

1.21.71

3 months ago

1.21.72

3 months ago

1.21.73

3 months ago

1.21.74

3 months ago

1.21.55

5 months ago

1.21.56

5 months ago

1.21.57

5 months ago

1.21.58

5 months ago

1.21.59

5 months ago

1.21.64

5 months ago

1.21.60

5 months ago

1.21.61

5 months ago

1.21.62

5 months ago

1.21.63

5 months ago

1.21.42

7 months ago

1.21.43

7 months ago

1.21.44

7 months ago

1.21.45

6 months ago

1.21.46

6 months ago

1.21.47

6 months ago

1.21.48

6 months ago

1.21.49

6 months ago

1.21.40

7 months ago

1.21.41

7 months ago

1.21.53

6 months ago

1.21.54

6 months ago

1.21.50

6 months ago

1.21.51

6 months ago

1.21.52

6 months ago

1.21.39

7 months ago

1.21.36

7 months ago

1.21.37

7 months ago

1.21.38

7 months ago

1.21.32

7 months ago

1.21.33

7 months ago

1.21.34

7 months ago

1.21.35

7 months ago

1.21.0

10 months ago

1.21.1

10 months ago

1.21.4

10 months ago

1.21.5

10 months ago

1.21.2

10 months ago

1.21.3

10 months ago

1.21.8

10 months ago

1.21.9

10 months ago

1.21.6

10 months ago

1.21.7

10 months ago

1.21.17

9 months ago

1.21.18

9 months ago

1.21.19

9 months ago

1.21.10

10 months ago

1.21.11

9 months ago

1.21.12

9 months ago

1.21.13

9 months ago

1.21.14

9 months ago

1.21.15

9 months ago

1.21.16

9 months ago

1.21.28

8 months ago

1.21.29

8 months ago

1.21.20

9 months ago

1.21.21

8 months ago

1.21.22

8 months ago

1.21.23

8 months ago

1.21.24

8 months ago

1.21.25

8 months ago

1.21.26

8 months ago

1.21.27

8 months ago

1.21.31

7 months ago

1.21.30

8 months ago

1.20.10

10 months ago

1.20.11

10 months ago

1.20.12

10 months ago

1.20.13

10 months ago

1.20.14

10 months ago

1.20.15

10 months ago

1.20.9

10 months ago

1.20.7

10 months ago

1.20.8

10 months ago

1.18.1

11 months ago

1.18.0

11 months ago

1.19.0

11 months ago

1.19.1

11 months ago

1.20.1

11 months ago

1.20.2

11 months ago

1.20.0

11 months ago

1.20.5

10 months ago

1.20.6

10 months ago

1.20.3

11 months ago

1.20.4

10 months ago

1.17.6

11 months ago

1.17.5

11 months ago

1.17.7

11 months ago

1.17.4

11 months ago

1.14.6-alpha.0

12 months ago

1.15.0

12 months ago

1.16.2

12 months ago

1.16.1

12 months ago

1.16.0

12 months ago

1.17.2

12 months ago

1.17.1

12 months ago

1.17.0

12 months ago

1.17.3

12 months ago

1.14.5

1 year ago

1.14.4

1 year ago

1.14.3

1 year ago

1.14.2

1 year ago

1.14.1

1 year ago

1.14.0

1 year ago

1.13.5

1 year ago

1.13.4

1 year ago

1.13.3

1 year ago

1.13.2

1 year ago

1.13.1

1 year ago

1.13.0

1 year ago

1.12.3

1 year ago

1.12.2

1 year ago

1.12.1

1 year ago

1.12.0

1 year ago

1.11.1

1 year ago

1.11.0

1 year ago

1.10.11

1 year ago

1.10.12

1 year ago

1.10.10

1 year ago

1.10.9

1 year ago

1.10.8

1 year ago

1.10.7

1 year ago

1.10.6

1 year ago

1.10.5

1 year ago

1.10.4

1 year ago

1.10.3

1 year ago

1.10.2

1 year ago

1.10.1

1 year ago

1.10.0

1 year ago

1.9.2

1 year ago

1.9.1

1 year ago

1.9.0

1 year ago

1.8.2

1 year ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.7

1 year ago

1.7.6

1 year ago

1.7.5

1 year ago

1.7.4

1 year ago

1.7.3

1 year ago

1.7.2

1 year ago

1.7.1

1 year ago

1.7.0

1 year ago

1.6.4

1 year ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.14

1 year ago

1.5.13

2 years ago

1.5.12

2 years ago

1.5.11

2 years ago

1.5.10

2 years ago

1.5.9

2 years ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.19

2 years ago

1.2.20

2 years ago

1.2.18

2 years ago

1.2.17

2 years ago

1.2.16

2 years ago

1.2.15

2 years ago

1.2.14

2 years ago

1.2.13

2 years ago

1.2.12

2 years ago

1.2.11

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago