@@ -147,39 +147,27 @@ More usages or getting start you can refer to these clearly [examples](https://g
147
147
<td>{}</td>
148
148
<td>Extra props assign to item component.</td>
149
149
</tr>
150
- <tr>
151
- <td><code>start</code></td>
152
- <td>Number</td>
153
- <td>0</td>
154
- <td>Setting scroll stay start index.</td>
155
- </tr>
156
- <tr>
157
- <td><code>offset</code></td>
158
- <td>Number</td>
159
- <td>0</td>
160
- <td>Setting scroll stay offset.</td>
161
- </tr>
162
150
<tr>
163
151
<td><code>scroll</code></td>
164
- <td>Function </td>
152
+ <td>Event </td>
165
153
<td></td>
166
154
<td>Emited when scrolling, param <code>(event, range)</code>.</td>
167
155
</tr>
168
156
<tr>
169
157
<td><code>totop</code></td>
170
- <td>Function </td>
158
+ <td>Event </td>
171
159
<td></td>
172
160
<td>Emited when scrolled to top or left, param <code>(event, range)</code>.</td>
173
161
</tr>
174
162
<tr>
175
163
<td><code>tobottom</code></td>
176
- <td>Function </td>
164
+ <td>Event </td>
177
165
<td></td>
178
166
<td>Emited when scrolled to bottom or right, param <code>(event, range)</code>.</td>
179
167
</tr>
180
168
<tr>
181
169
<td><code>resized</code></td>
182
- <td>Function </td>
170
+ <td>Event </td>
183
171
<td></td>
184
172
<td>Emited when each item resized (mounted), param <code>(id, size)</code>.</td>
185
173
</tr>
@@ -191,11 +179,23 @@ More usages or getting start you can refer to these clearly [examples](https://g
191
179
<p ></p >
192
180
<table >
193
181
<tr>
194
- <th>Props</th>
182
+ <th> Props </th>
195
183
<th>Type</th>
196
184
<th>Default</th>
197
185
<th>Description</th>
198
186
</tr>
187
+ <tr>
188
+ <td><code>start</code></td>
189
+ <td>Number</td>
190
+ <td>0</td>
191
+ <td>Setting scroll stay start index.</td>
192
+ </tr>
193
+ <tr>
194
+ <td><code>offset</code></td>
195
+ <td>Number</td>
196
+ <td>0</td>
197
+ <td>Setting scroll stay offset.</td>
198
+ </tr>
199
199
<tr>
200
200
<td><code>root-tag</code></td>
201
201
<td>String</td>
@@ -287,6 +287,10 @@ Here are some usefull public methods you can call via [`ref`](https://vuejs.org/
287
287
288
288
* ` getSizes() ` : get the total number of stored (rendered) items.
289
289
290
+ * ` getClientSize() ` : get wrapper client viewport size (width or height).
291
+
292
+ * ` getScrollSize() ` : get all scroll size (scrollHeight or scrollWidth).
293
+
290
294
291
295
## Attentions
292
296
0 commit comments