File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*!
2
- * vue-virtual-scroll-list v2.3.0
2
+ * vue-virtual-scroll-list v2.3.1
3
3
* open source under the MIT license
4
4
* https://github.com/tangbc/vue-virtual-scroll-list#readme
5
5
*/
202
202
value : function handleFront ( ) {
203
203
var overs = this . getScrollOvers ( ) ; // should not change range if start doesn't exceed overs
204
204
205
- if ( overs > this . range . start ) {
205
+ if ( overs > this . range . start || ! this . param ) {
206
206
return ;
207
207
} // move up start by a buffer length, and make sure its safety
208
208
626
626
this . virtual . updateParam ( 'uniqueIds' , this . getUniqueIdFromDataSources ( ) ) ;
627
627
this . virtual . handleDataSourcesChange ( ) ;
628
628
} ,
629
+ keeps : function keeps ( newValue ) {
630
+ this . virtual . updateParam ( 'keeps' , newValue ) ;
631
+ this . virtual . handleSlotSizeChange ( ) ;
632
+ } ,
629
633
start : function start ( newValue ) {
630
634
this . scrollToIndex ( newValue ) ;
631
635
} ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-virtual-scroll-list" ,
3
- "version" : " 2.3.0 " ,
3
+ "version" : " 2.3.1 " ,
4
4
"description" : " A vue component support big amount data list with high scroll performance." ,
5
5
"main" : " dist/index.js" ,
6
6
"files" : [
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ const VirtualList = Vue.component('virtual-list', {
32
32
} ,
33
33
34
34
keeps ( newValue ) {
35
- this . virtual . updateParam ( 'keeps' , newValue ) ;
36
- this . virtual . handleSlotSizeChange ( ) ;
35
+ this . virtual . updateParam ( 'keeps' , newValue )
36
+ this . virtual . handleSlotSizeChange ( )
37
37
} ,
38
38
39
39
start ( newValue ) {
You can’t perform that action at this time.
0 commit comments