Skip to content

Commit cea14d2

Browse files
committed
Add spinner slot to customize spinner as loading animation
1 parent 6d22613 commit cea14d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/InfiniteLoading.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
22
<div class="infinite-loading-container">
3-
<i :class="spinnerType" v-show="isLoading"></i>
3+
<slot name="spinner">
4+
<i :class="spinnerType" v-show="isLoading"></i>
5+
</slot>
46
<div class="infinite-status-prompt" v-show="!isLoading && isComplete && isFirstLoad">
57
<slot name="no-results">No results :(</slot>
68
</div>

0 commit comments

Comments
 (0)