File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,12 @@ More usages or getting start you can refer to these clearly [examples](https://g
159
159
<td>0</td>
160
160
<td>Setting scroll stay offset.</td>
161
161
</tr>
162
+ <tr>
163
+ <td><code>scroll</code></td>
164
+ <td>Function</td>
165
+ <td></td>
166
+ <td>Emited when scrolling, param <code>(event, range)</code>.</td>
167
+ </tr>
162
168
<tr>
163
169
<td><code>totop</code></td>
164
170
<td>Function</td>
@@ -172,10 +178,10 @@ More usages or getting start you can refer to these clearly [examples](https://g
172
178
<td>Emited when scrolled to bottom or right, param <code>(event, range)</code>.</td>
173
179
</tr>
174
180
<tr>
175
- <td><code>scroll </code></td>
181
+ <td><code>resized </code></td>
176
182
<td>Function</td>
177
183
<td></td>
178
- <td>Emited when scrolling , param <code>(event, range )</code>.</td>
184
+ <td>Emited when each item resized (mounted) , param <code>(id, size )</code>.</td>
179
185
</tr>
180
186
</table >
181
187
</details >
Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ const VirtualList = Vue.component('virtual-list', {
160
160
// event called when each item mounted or size changed
161
161
onItemResized ( id , size ) {
162
162
this . virtual . saveSize ( id , size )
163
+ this . $emit ( 'resized' , id , size )
163
164
} ,
164
165
165
166
// event called when slot mounted or size changed
You can’t perform that action at this time.
0 commit comments