|
2 | 2 |
|
3 | 3 | ## Attributes
|
4 | 4 |
|
5 |
| -| Attribute | Description | Type | Default | Required | |
6 |
| -| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ | ------- | ----------------------------- | |
7 |
| -| list | list data | `Array` | - | <font color="#f00">Yes</font> | |
8 |
| -| itemKey | The Id of Item,<font color="#f00">unique key!!!</font>(if not, scroll fail) | `String\|Number` | - | <font color="#f00">Yes</font> | |
9 |
| -| minSize | **The Min Size of Item** | `Number` | `20` | <font color="#f00">Yes</font> | |
10 |
| -| itemGap | the gap between item (item size include itemGap) | `Number` | 0 | - | |
11 |
| -| fixed | fixed height of item use it | `Number` | `false` | - | |
12 |
| -| buffer | When the rendering amount is large and the scrolling white screen is serious, you can give a value<br/>bufferTop = bufferBottom = buffer | `Number` | `0` | - | |
13 |
| -| bufferTop | buffer of top | `Number` | `0` | - | |
14 |
| -| bufferBottom | buffer of bottom | `Number` | `0` | - | |
15 |
| -| horizontal | is horizontal scrolling | `Boolean` | `false` | - | |
16 |
| -| scrollDistance | Rolling threshold (triggering toTop or toBottom in advance) Unit: px | `number` | `0` | - | |
17 |
| -| fixSelection | fix the scrolling loss selection problem (only required and effective in vue2 diff-bug) | `Boolean` | `false` | - | |
18 |
| -| start | Start rendering index | `Number` | `0` | - | |
19 |
| -| offset | Start rendering scrollTop | `Number` | `0` | - | |
20 |
| -| listStyle | list container style | `String` | `''` | - | |
21 |
| -| listClass | list container class | `String` | `''` | - | |
22 |
| -| itemStyle | item style | `String` | `''` | - | |
23 |
| -| itemClass | item class | `String` | `''` | - | |
24 |
| -| renderControl | render control | `(begin: number, end: number ) => { begin: number; end: number };` | - | - | |
| 5 | +| Attribute | Description | Type | Default | Required | |
| 6 | +| -------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------- | ----------------------------- | |
| 7 | +| list | list data | `Array` | - | <font color="#f00">Yes</font> | |
| 8 | +| itemKey | The Id of Item,<font color="#f00">unique key!!!</font>(if not, scroll fail) | `String\|Number` | - | <font color="#f00">Yes</font> | |
| 9 | +| minSize | **The Min Size of Item** | `Number` | `20` | <font color="#f00">Yes</font> | |
| 10 | +| itemGap | the gap between item (item size include itemGap) | `Number` | 0 | - | |
| 11 | +| fixed | fixed height of item use it | `Number` | `false` | - | |
| 12 | +| buffer | When the rendering amount is large and the scrolling white screen is serious, you can give a value<br/>bufferTop = bufferBottom = buffer | `Number` | `0` | - | |
| 13 | +| bufferTop | buffer of top | `Number` | `0` | - | |
| 14 | +| bufferBottom | buffer of bottom | `Number` | `0` | - | |
| 15 | +| horizontal | is horizontal scrolling | `Boolean` | `false` | - | |
| 16 | +| scrollDistance | Rolling threshold (triggering toTop or toBottom in advance) Unit: px | `number` | `0` | - | |
| 17 | +| fixSelection | fix the scrolling loss selection problem (only required and effective in vue2 diff-bug) | `Boolean` | `false` | - | |
| 18 | +| start | Start rendering index | `Number` | `0` | - | |
| 19 | +| offset | Start rendering scrollTop | `Number` | `0` | - | |
| 20 | +| listStyle | list container style | string \| Array\<string \| { [key: string]: any }\> \| { [key: string]: any } | `''` | - | |
| 21 | +| listClass | list container class | string \| Array\<string\> \| { [key: string]: boolean } | `''` | - | |
| 22 | +| itemStyle | item style | string \| Array\<string \| { [key: string]: any }\> \| { [key: string]: any } | `''` | - | |
| 23 | +| itemClass | item class | string \|Array\<string\> \|{ [key: string]: boolean } | `''` | - | |
| 24 | +| renderControl | render control | `(begin: number, end: number ) => { begin: number; end: number };` | - | - | |
25 | 25 |
|
26 | 26 | ## Slots
|
27 | 27 |
|
|
0 commit comments