File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 11/*!
2- * vue-virtual-scroll-list v2.1.7
2+ * vue-virtual-scroll-list v2.1.8
33 * open source under the MIT license
44 * https://github.com/tangbc/vue-virtual-scroll-list#readme
55 */
118118 } , {
119119 key : "updateParam" ,
120120 value : function updateParam ( key , value ) {
121+ var _this = this ;
122+
121123 if ( this . param && key in this . param ) {
124+ // if uniqueIds reducing, find out deleted id and remove from size map
125+ if ( key === 'uniqueIds' && value . length < this . param [ key ] . length ) {
126+ this . sizes . forEach ( function ( v , key ) {
127+ if ( ! value . includes ( key ) ) {
128+ _this . sizes [ "delete" ] ( key ) ;
129+ }
130+ } ) ;
131+ }
132+
122133 this . param [ key ] = value ;
123134 }
124135 } // save each size map by id
Original file line number Diff line number Diff line change 11{
22 "name" : " vue-virtual-scroll-list" ,
3- "version" : " 2.1.7 " ,
3+ "version" : " 2.1.8 " ,
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