File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
packages/vue-virtual-scroller/src/components Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ export default {
9090 vscrollData: {
9191 active: true ,
9292 sizes: {},
93- validSizes: {},
9493 keyField: this .keyField ,
9594 simpleArray: false ,
9695 },
@@ -124,7 +123,7 @@ export default {
124123
125124 watch: {
126125 items () {
127- this .forceUpdate (false )
126+ this .forceUpdate ()
128127 },
129128
130129 simpleArray: {
@@ -196,9 +195,9 @@ export default {
196195 this .$emit (' visible' )
197196 },
198197
199- forceUpdate (clear = true ) {
198+ forceUpdate (clear = false ) {
200199 if (clear || this .simpleArray ) {
201- this .vscrollData .validSizes = {}
200+ this .vscrollData .sizes = {}
202201 }
203202 this .$_events .emit (' vscroll:update' , { force: true })
204203 },
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export default {
6363 },
6464
6565 size () {
66- return ( this .vscrollData .validSizes [ this . id ] && this . vscrollData . sizes [this .id ]) || 0
66+ return this .vscrollData .sizes [this .id ] || 0
6767 },
6868
6969 finalActive () {
@@ -198,7 +198,6 @@ export default {
198198 this .vscrollParent .$_undefinedMap [this .id ] = undefined
199199 }
200200 this .vscrollData .sizes [this .id ] = size
201- this .vscrollData .validSizes [this .id ] = true
202201 if (this .emitResize ) this .$emit (' resize' , this .id )
203202 }
204203 },
You can’t perform that action at this time.
0 commit comments