diff --git a/packages/vue-virtual-scroller/src/components/DynamicScroller.vue b/packages/vue-virtual-scroller/src/components/DynamicScroller.vue index 371075c4..f5ab34ce 100644 --- a/packages/vue-virtual-scroller/src/components/DynamicScroller.vue +++ b/packages/vue-virtual-scroller/src/components/DynamicScroller.vue @@ -4,7 +4,7 @@ :items="itemsWithSize" :min-item-size="minItemSize" :direction="direction" - :key-field="keyField" + key-field="id" :list-tag="listTag" :item-tag="itemTag" v-bind="$attrs" @@ -45,8 +45,6 @@ export default { RecycleScroller, }, - inheritAttrs: false, - provide () { if (typeof ResizeObserver !== 'undefined') { this.$_resizeObserver = new ResizeObserver(entries => { @@ -78,6 +76,8 @@ export default { } }, + inheritAttrs: false, + props: { ...props,