File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*!
2
- * vue-virtual-scroll-list v2.2.0
2
+ * vue-virtual-scroll-list v2.2.1
3
3
* open source under the MIT license
4
4
* https://github.com/tangbc/vue-virtual-scroll-list#readme
5
5
*/
263
263
} , {
264
264
key : "getIndexOffset" ,
265
265
value : function getIndexOffset ( givenIndex ) {
266
- // we know this.
267
266
if ( ! givenIndex ) {
268
267
return 0 ;
269
268
}
274
273
for ( var index = 0 ; index < givenIndex ; index ++ ) {
275
274
// this.__getIndexOffsetCalls++
276
275
indexSize = this . sizes . get ( this . param . uniqueIds [ index ] ) ;
277
- offset = offset + ( indexSize || this . getEstimateSize ( ) ) ;
276
+ offset = offset + ( typeof indexSize === 'number' ? indexSize : this . getEstimateSize ( ) ) ;
278
277
} // remember last calculate index
279
278
280
279
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-virtual-scroll-list" ,
3
- "version" : " 2.2.0 " ,
3
+ "version" : " 2.2.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" : [
You can’t perform that action at this time.
0 commit comments