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
Here are the details of update information[release v2.0](https://github.com/tangbc/vue-virtual-scroll-list/releases/tag/v2.0.0).
53
+
Here are the major of update informations with[release v2.0](https://github.com/tangbc/vue-virtual-scroll-list/releases/tag/v2.0.0).
54
54
55
55
Since the `v2.0` is **not compatible** with `v1.x`, please note before upgrading, `v1.x` documentation see [v1.x.md](https://github.com/tangbc/vue-virtual-scroll-list/blob/master/v1.x.md).
56
56
@@ -61,7 +61,7 @@ Since the `v2.0` is **not compatible** with `v1.x`, please note before upgrading
@@ -152,6 +154,18 @@ More usages or getting start you can refer to these clearly [examples](https://t
152
154
|`header-class`| String || For using header slot, header slot wrapper element class name. |
153
155
|`footer-class`| String || For using footer slot, footer slot wrapper element class name. |
154
156
157
+
### Public methods
158
+
159
+
Here are some usefull public methods you can call via [`ref`](https://vuejs.org/v2/guide/components-edge-cases.html#Accessing-Child-Component-Instances-amp-Child-Elements):
160
+
161
+
*`reset()`: reset all state back to initial.
162
+
163
+
*`scrollToBottom()`: manual set scroll position to bottom.
164
+
165
+
*`scrollToIndex(index)`: manual set scroll position to a designated index.
166
+
167
+
*`scrollToOffset(offset)`: manual set scroll position to a designated offset.
0 commit comments