File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11/*!
2- * vue-virtual-scroll-list v2.3.0
2+ * vue-virtual-scroll-list v2.3.1
33 * open source under the MIT license
44 * https://github.com/tangbc/vue-virtual-scroll-list#readme
55 */
202202 value : function handleFront ( ) {
203203 var overs = this . getScrollOvers ( ) ; // should not change range if start doesn't exceed overs
204204
205- if ( overs > this . range . start ) {
205+ if ( overs > this . range . start || ! this . param ) {
206206 return ;
207207 } // move up start by a buffer length, and make sure its safety
208208
626626 this . virtual . updateParam ( 'uniqueIds' , this . getUniqueIdFromDataSources ( ) ) ;
627627 this . virtual . handleDataSourcesChange ( ) ;
628628 } ,
629+ keeps : function keeps ( newValue ) {
630+ this . virtual . updateParam ( 'keeps' , newValue ) ;
631+ this . virtual . handleSlotSizeChange ( ) ;
632+ } ,
629633 start : function start ( newValue ) {
630634 this . scrollToIndex ( newValue ) ;
631635 } ,
Original file line number Diff line number Diff line change 11{
22 "name" : " vue-virtual-scroll-list" ,
3- "version" : " 2.3.0 " ,
3+ "version" : " 2.3.1 " ,
44 "description" : " A vue component support big amount data list with high scroll performance." ,
55 "main" : " dist/index.js" ,
66 "files" : [
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ const VirtualList = Vue.component('virtual-list', {
3232 } ,
3333
3434 keeps ( newValue ) {
35- this . virtual . updateParam ( 'keeps' , newValue ) ;
36- this . virtual . handleSlotSizeChange ( ) ;
35+ this . virtual . updateParam ( 'keeps' , newValue )
36+ this . virtual . handleSlotSizeChange ( )
3737 } ,
3838
3939 start ( newValue ) {
You can’t perform that action at this time.
0 commit comments