Skeleton loader

This commit is contained in:
2024-10-04 13:16:05 +02:00
parent ed4fa90f75
commit 0cf0c6be76
20 changed files with 458 additions and 286 deletions

View File

@@ -5,7 +5,8 @@ defineProps({
link: {
type: Boolean,
default: true
}
},
loading: Boolean
})
</script>
@@ -16,21 +17,37 @@ defineProps({
>
<v-row>
<v-col cols="auto" class="pr-0">
<v-img
:src="image"
aspect-ratio="1"
width="140"
cover
/>
<v-skeleton-loader
type="image"
:loading="loading"
width="140"
>
<v-img
:src="image"
aspect-ratio="1"
width="140"
cover
/>
</v-skeleton-loader>
</v-col>
<v-col class="pl-0" cols="7">
<v-card-title v-if="title">
{{ title }}
</v-card-title>
<v-skeleton-loader
:loading="loading"
type="heading"
>
<v-card-title v-if="title">
{{ title }}
</v-card-title>
</v-skeleton-loader>
<div class="px-4 pb-4" v-if="$slots.default">
<slot></slot>
<v-skeleton-loader
:loading="loading"
type="sentences"
>
<slot></slot>
</v-skeleton-loader>
</div>
</v-col>