|
6 | 6 |
|
7 | 7 | name | type | default | description | required |
8 | 8 | -- | -- | -- | -- | -- |
9 | | -className | String | - | 类名 | N |
10 | | -style | Object | - | 样式,Typescript:`React.CSSProperties` | N |
| 9 | +className | String | - | className of component | N |
| 10 | +style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N |
11 | 11 | asyncLoading | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
12 | 12 | footer | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
13 | 13 | header | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
14 | | -layout | String | horizontal | options:horizontal/vertical | N |
| 14 | +layout | String | horizontal | options: horizontal/vertical | N |
15 | 15 | scroll | Object | - | lazy load and virtual scroll。Typescript:`TScroll`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
16 | | -size | String | medium | options:small/medium/large | N |
| 16 | +size | String | medium | options: small/medium/large | N |
17 | 17 | split | Boolean | false | \- | N |
18 | 18 | stripe | Boolean | false | \- | N |
19 | 19 | onLoadMore | Function | | Typescript:`(options: { e: MouseEvent }) => void`<br/> | N |
20 | 20 | onScroll | Function | | Typescript:`(options: { e: Event \| WheelEvent; scrollTop: number; scrollBottom: number }) => void`<br/> | N |
21 | 21 |
|
| 22 | +### ListInstanceFunctions |
| 23 | + |
| 24 | +name | params | return | description |
| 25 | +-- | -- | -- | -- |
| 26 | +className | String | - | className of component | N |
| 27 | +style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N |
| 28 | +scrollTo | `(scrollToParams: ScrollToElementParams)` | \- | support scrolling to a specific node when virtual scrolling 。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) |
| 29 | + |
| 30 | + |
22 | 31 | ### ListItem Props |
23 | 32 |
|
24 | 33 | name | type | default | description | required |
25 | 34 | -- | -- | -- | -- | -- |
26 | | -className | String | - | 类名 | N |
27 | | -style | Object | - | 样式,Typescript:`React.CSSProperties` | N |
| 35 | +className | String | - | className of component | N |
| 36 | +style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N |
28 | 37 | action | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
29 | 38 | children | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
30 | 39 | content | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
31 | 40 |
|
| 41 | + |
32 | 42 | ### ListItemMeta Props |
33 | 43 |
|
34 | 44 | name | type | default | description | required |
35 | 45 | -- | -- | -- | -- | -- |
36 | | -className | String | - | 类名 | N |
37 | | -style | Object | - | 样式,Typescript:`React.CSSProperties` | N |
| 46 | +className | String | - | className of component | N |
| 47 | +style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N |
38 | 48 | description | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
39 | 49 | image | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
40 | 50 | title | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
0 commit comments