mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-10-15 09:50:48 +02:00
Loadingpage
MangaCardList Manga with Tag Page
This commit is contained in:
20
website/app/components/LoadingPage.vue
Normal file
20
website/app/components/LoadingPage.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<UPageBody v-if="loading">
|
||||
<UPageHero title="Loading..." />
|
||||
</UPageBody>
|
||||
<UPageBody v-else v-bind="$props">
|
||||
<template v-for="(_, slotName) in $slots" #[slotName]>
|
||||
<slot :name="slotName" />
|
||||
</template>
|
||||
</UPageBody>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { PageBodyProps } from '#ui/components/PageBody.vue';
|
||||
|
||||
export interface LoadingPageProps extends PageBodyProps {
|
||||
loading: boolean;
|
||||
}
|
||||
|
||||
defineProps<LoadingPageProps>();
|
||||
</script>
|
Reference in New Issue
Block a user