From 6d2cbcb65217f75a99cd27b7357e6f025f04ad78 Mon Sep 17 00:00:00 2001 From: aisin Date: Tue, 21 Jul 2020 17:16:03 +0800 Subject: [PATCH] Response to update when `keeps` changes --- src/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.js b/src/index.js index f2eaf8c..7ae6ce2 100644 --- a/src/index.js +++ b/src/index.js @@ -31,6 +31,11 @@ const VirtualList = Vue.component('virtual-list', { this.virtual.handleDataSourcesChange() }, + keeps (newValue) { + this.virtual.updateParam('keeps', newValue); + this.virtual.handleSlotSizeChange(); + }, + start (newValue) { this.scrollToIndex(newValue) },