File tree 2 files changed +4
-6
lines changed
packages/vue-virtual-scroller/src/components 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ export default {
90
90
vscrollData: {
91
91
active: true ,
92
92
sizes: {},
93
- validSizes: {},
94
93
keyField: this .keyField ,
95
94
simpleArray: false ,
96
95
},
@@ -124,7 +123,7 @@ export default {
124
123
125
124
watch: {
126
125
items () {
127
- this .forceUpdate (false )
126
+ this .forceUpdate ()
128
127
},
129
128
130
129
simpleArray: {
@@ -196,9 +195,9 @@ export default {
196
195
this .$emit (' visible' )
197
196
},
198
197
199
- forceUpdate (clear = true ) {
198
+ forceUpdate (clear = false ) {
200
199
if (clear || this .simpleArray ) {
201
- this .vscrollData .validSizes = {}
200
+ this .vscrollData .sizes = {}
202
201
}
203
202
this .$_events .emit (' vscroll:update' , { force: true })
204
203
},
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export default {
63
63
},
64
64
65
65
size () {
66
- return ( this .vscrollData .validSizes [ this . id ] && this . vscrollData . sizes [this .id ]) || 0
66
+ return this .vscrollData .sizes [this .id ] || 0
67
67
},
68
68
69
69
finalActive () {
@@ -198,7 +198,6 @@ export default {
198
198
this .vscrollParent .$_undefinedMap [this .id ] = undefined
199
199
}
200
200
this .vscrollData .sizes [this .id ] = size
201
- this .vscrollData .validSizes [this .id ] = true
202
201
if (this .emitResize ) this .$emit (' resize' , this .id )
203
202
}
204
203
},
You can’t perform that action at this time.
0 commit comments