diff --git a/README.md b/README.md index 7fd75c4d..15195eef 100644 --- a/README.md +++ b/README.md @@ -205,6 +205,8 @@ When the user scrolls inside RecycleScroller, the views are mostly just moved ar - `visible`: emitted when the scroller considers itself to be visible in the page. - `hidden`: emitted when the scroller is hidden in the page. - `update (startIndex, endIndex, visibleStartIndex, visibleEndIndex)`: emitted each time the views are updated, only if `emitUpdate` prop is `true` +- `scroll-start`: emitted when the first item is rendered. +- `scroll-end`: emitted when the last item is rendered. ### Default scoped slot props diff --git a/docs-src/src/components/RecycleScrollerDemo.vue b/docs-src/src/components/RecycleScrollerDemo.vue index f02dd94e..98d17ca8 100644 --- a/docs-src/src/components/RecycleScrollerDemo.vue +++ b/docs-src/src/components/RecycleScrollerDemo.vue @@ -84,6 +84,8 @@ @update="onUpdate" @visible="onVisible" @hidden="onHidden" + @scroll-start="onScrollStart" + @scroll-end="onScrollEnd" >