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 11/*!
2- * vue-virtual-scroll-list v2.2.0
2+ * vue-virtual-scroll-list v2.2.1
33 * open source under the MIT license
44 * https://github.com/tangbc/vue-virtual-scroll-list#readme
55 */
263263 } , {
264264 key : "getIndexOffset" ,
265265 value : function getIndexOffset ( givenIndex ) {
266- // we know this.
267266 if ( ! givenIndex ) {
268267 return 0 ;
269268 }
274273 for ( var index = 0 ; index < givenIndex ; index ++ ) {
275274 // this.__getIndexOffsetCalls++
276275 indexSize = this . sizes . get ( this . param . uniqueIds [ index ] ) ;
277- offset = offset + ( indexSize || this . getEstimateSize ( ) ) ;
276+ offset = offset + ( typeof indexSize === 'number' ? indexSize : this . getEstimateSize ( ) ) ;
278277 } // remember last calculate index
279278
280279
Original file line number Diff line number Diff line change 11{
22 "name" : " vue-virtual-scroll-list" ,
3- "version" : " 2.2.0 " ,
3+ "version" : " 2.2.1 " ,
44 "description" : " A vue component support big amount data list with high scroll performance." ,
55 "main" : " dist/index.js" ,
66 "files" : [
You can’t perform that action at this time.
0 commit comments