You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `<Item>` component is included inside but defined outside the `<virtualList>` component. We see that `<virtualList>`**not** rely on `<Item>` component. So you can use virtual-list with any list item component freely.
70
+
The `<Item>` component is included inside but defined outside the `<virtualList>` component. We see that `<virtualList>`does **not** rely on the`<Item>` component. So you can use virtual-list with any list item component freely.
71
71
72
72
#### Using by script tag:
73
73
@@ -107,13 +107,13 @@ new Vue({
107
107
*Prop* | *Type* | *Required* | *Description* |
108
108
:--- | :--- | :--- | :--- |
109
109
| size | Number | ✓ | Each list item height, currently only supports fixed height. |
110
-
| remain | Number | ✓ | How many items except show in virtual-list viewport, so `size` and `remian` will determine the virtual-list outside container height (size × remian). |
111
-
| start | Number | * | Default value is `0`, the initial scroll start index. It must be integer and in the range of list index, do nothing but throw a warnning if not match. |
110
+
| remain | Number | ✓ | How many items should be shown in virtual-list viewport, so `size` and `remainn` will determine the virtual-list outside container height (size × remian). |
111
+
| start | Number | * | Default value is `0`, the initial scroll start index. It must be integer and in the range of list index, throws a warning if index does not exist. |
112
112
| rtag | String | * | Default value is `div`, the virtual-list's root HTMLElement tag name, in all case it's style is set to `display: block;`|
113
113
| rtagClass | String | * | Default value is an empty string, the virtual-list's root HTMLElement tag's classes. Has the same API has [`v-bind:class`](https://vuejs.org/v2/guide/class-and-style.html)|
114
114
| wtag | String | * | Default value is `div`, the virtual-list's item wrapper HTMLElement tag name, in all case it's style is set to `display: block;`|
115
115
| wtagClass | String | * | Default value is an empty string, the virtual-list's item wrapper HTMLElement tag's classes. Has the same API has [`v-bind:class`](https://vuejs.org/v2/guide/class-and-style.html)|
116
-
| onscroll | Function | * | Called when virtual-list scroll event hanlding, param: `(e, scrollTop)`. |
116
+
| onscroll | Function | * | Called when virtual-list scroll event handling, param: `(e, scrollTop)`. |
117
117
| totop | Function | * | Called when the virtual-list is scrolled to top. |
118
118
| tobottom | Function | * | Called when the virtual-list is scrolled to bottom. |
119
119
@@ -125,7 +125,7 @@ Welcome to improve vue-virtual-scroll-list by any pull request or issue.
125
125
126
126
## Changelogs
127
127
128
-
Maintain and update occasionally, changes see [releasese](https://github.com/tangbc/vue-virtual-scroll-list/releases).
128
+
Maintain and update occasionally, for changes see [release](https://github.com/tangbc/vue-virtual-scroll-list/releases).
0 commit comments