Skip to content

Commit bcf7918

Browse files
committed
fix: update when the items changes, fix #866
1 parent 61b9919 commit bcf7918

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/vue-virtual-scroller/src/components/RecycleScroller.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ export default {
249249
this.updateVisibleItems(true)
250250
},
251251
252+
'items.length' () {
253+
this.updateVisibleItems(true)
254+
},
255+
252256
pageMode () {
253257
this.applyPageMode()
254258
this.updateVisibleItems(false)

0 commit comments

Comments
 (0)