Skip to content

Commit 1c9f60a

Browse files
committed
Release v2.3.1
1 parent b7e581b commit 1c9f60a

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

dist/index.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
*/
@@ -202,7 +202,7 @@
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

@@ -626,6 +626,10 @@
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
},

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": [

src/index.js

+2-2
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)