elk/components/common/CommonPaginator.vue

18 lines
306 B
Vue
Raw Normal View History

2022-11-16 16:11:08 +00:00
<script setup lang="ts">
import type { PaginatorState } from '~/types'
defineProps<{
state: PaginatorState
}>()
</script>
<template>
<slot />
<div v-if="state === 'loading'" p5 color-gray-5>
Loading...
</div>
<div v-if="state === 'done'" p5 color-gray>
End of list
</div>
</template>