mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-21 01:21:54 +08:00
chore: make skeleton delay optional
This commit is contained in:
parent
2fd7b2348b
commit
df5fdb476b
@ -1,15 +1,17 @@
|
||||
<script lang="ts" setup>
|
||||
withDefaults(
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
animated?: boolean;
|
||||
delay?: boolean;
|
||||
}>(),
|
||||
{
|
||||
animated: true,
|
||||
delay: false,
|
||||
}
|
||||
);
|
||||
|
||||
const show = ref(false);
|
||||
if (import.meta.client) {
|
||||
if (import.meta.client && props.delay) {
|
||||
onMounted(() => {
|
||||
setTimeout(() => {
|
||||
show.value = true;
|
||||
|
@ -93,8 +93,8 @@ function getVisibilityTitle(visibility: Visibility) {
|
||||
<section class="basis-full md:basis-11/15 flex-grow">
|
||||
<ul>
|
||||
<template v-if="versionsStatus === 'loading'">
|
||||
<Skeleton class="mb-2 h-[90px]" />
|
||||
<Skeleton class="mb-2 h-[90px]" />
|
||||
<Skeleton class="mb-2 h-[90px]" delay />
|
||||
<Skeleton class="mb-2 h-[90px]" delay />
|
||||
</template>
|
||||
<Alert v-else-if="!versions?.result?.length" type="info"> {{ i18n.t("version.page.noVersions") }} </Alert>
|
||||
<Pagination
|
||||
|
Loading…
Reference in New Issue
Block a user