Skip to content

Commit 5c2715c

Browse files
dclauseAkryum
andauthored
feat: add an empty slot (#398)
Co-authored-by: Guillaume Chau <[email protected]>
1 parent 32b285d commit 5c2715c

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ When the user scrolls inside RecycleScroller, the views are mostly just moved ar
219219
<slot name="before"></slot>
220220
<wrapper>
221221
<!-- Reused view pools here -->
222+
<slot name="empty"></slot>
222223
</wrapper>
223224
<slot name="after"></slot>
224225
</main>

src/components/DynamicScroller.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
<template slot="after">
2929
<slot name="after" />
3030
</template>
31+
<template slot="empty">
32+
<slot name="empty" />
33+
</template>
3134
</RecycleScroller>
3235
</template>
3336

src/components/RecycleScroller.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
:active="view.nr.used"
4848
/>
4949
</component>
50+
51+
<slot
52+
name="empty"
53+
/>
5054
</component>
5155

5256
<div

0 commit comments

Comments
 (0)