mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-19 23:40:07 +00:00
chore: loading indicator
This commit is contained in:
parent
a2d5cc043c
commit
38f5d7155f
1 changed files with 6 additions and 5 deletions
|
@ -17,13 +17,14 @@ const { items, state, endAnchor, error } = usePaginator(paginator)
|
||||||
:item="item"
|
:item="item"
|
||||||
/>
|
/>
|
||||||
<div ref="endAnchor" />
|
<div ref="endAnchor" />
|
||||||
<div v-if="state === 'loading'" p5 color-gray-5>
|
<div v-if="state === 'loading'" p5 text-center flex="~ col" items-center animate-pulse>
|
||||||
Loading...
|
<div op50 i-ri:loader-2-fill animate-spin text-2xl />
|
||||||
|
<span op50>Loading...</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="state === 'done'" p5 color-gray>
|
<div v-else-if="state === 'done'" p5 op50 italic text-center>
|
||||||
End of list
|
End of the list
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="state === 'error'" p5 color-gray>
|
<div v-else-if="state === 'error'" p5 op50>
|
||||||
ERROR: {{ error }}
|
ERROR: {{ error }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue