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 1
1
/*!
2
- * vue-virtual-scroll-list v2.1.7
2
+ * vue-virtual-scroll-list v2.1.8
3
3
* open source under the MIT license
4
4
* https://github.com/tangbc/vue-virtual-scroll-list#readme
5
5
*/
118
118
} , {
119
119
key : "updateParam" ,
120
120
value : function updateParam ( key , value ) {
121
+ var _this = this ;
122
+
121
123
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
+
122
133
this . param [ key ] = value ;
123
134
}
124
135
} // save each size map by id
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-virtual-scroll-list" ,
3
- "version" : " 2.1.7 " ,
3
+ "version" : " 2.1.8 " ,
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