UNPKG

2.23 kBJSONView Raw
1{
2 "name": "VirtualList",
3 "props": {
4 "children": {
5 "type": {
6 "name": "any"
7 },
8 "required": false,
9 "description": "渲染的子节点",
10 "docblock": "渲染的子节点"
11 },
12 "minSize": {
13 "type": {
14 "name": "number"
15 },
16 "required": false,
17 "description": "最小加载数量",
18 "defaultValue": {
19 "value": "1",
20 "computed": false
21 },
22 "docblock": "最小加载数量"
23 },
24 "pageSize": {
25 "type": {
26 "name": "number"
27 },
28 "required": false,
29 "description": "一屏数量",
30 "defaultValue": {
31 "value": "10",
32 "computed": false
33 },
34 "docblock": "一屏数量"
35 },
36 "itemsRenderer": {
37 "type": {
38 "name": "func"
39 },
40 "required": false,
41 "description": "父渲染函数,默认为 (items, ref) => <ul ref={ref}>{items}</ul>",
42 "defaultValue": {
43 "value": "(items, ref) => <ul ref={ref}>{items}</ul>",
44 "computed": false
45 },
46 "docblock": "父渲染函数,默认为 (items, ref) => <ul ref={ref}>{items}</ul>",
47 "params": [],
48 "returns": null
49 },
50 "threshold": {
51 "type": {
52 "name": "number"
53 },
54 "required": false,
55 "description": "缓冲区高度",
56 "defaultValue": {
57 "value": "100",
58 "computed": false
59 },
60 "docblock": "缓冲区高度"
61 },
62 "itemSizeGetter": {
63 "type": {
64 "name": "func"
65 },
66 "required": false,
67 "description": "获取item高度的函数",
68 "docblock": "获取item高度的函数",
69 "params": [],
70 "returns": null
71 },
72 "jumpIndex": {
73 "type": {
74 "name": "number"
75 },
76 "required": false,
77 "description": "设置跳转位置,需要设置 itemSizeGetter 才能生效, 不设置认为元素等高并取第一个元素高度作为默认高",
78 "defaultValue": {
79 "value": "0",
80 "computed": false
81 },
82 "docblock": "设置跳转位置,需要设置 itemSizeGetter 才能生效, 不设置认为元素等高并取第一个元素高度作为默认高"
83 }
84 },
85 "methods": [],
86 "subComponents": []
87}
\No newline at end of file