Skip to content

Commit dc77310

Browse files
committed
Build v2.1.8
1 parent bd6d1ad commit dc77310

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

dist/index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
*/
@@ -118,7 +118,18 @@
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

package.json

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

0 commit comments

Comments
 (0)