primevue-mirror/doc/skeleton/ListDoc.vue

196 lines
7.6 KiB
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Sample List implementation using different Skeleton components and PrimeFlex CSS utilities.</p>
</DocSectionText>
<div class="card">
2024-05-20 12:14:38 +00:00
<div class="rounded border border-surface-200 dark:border-surface-700 p-6 bg-surface-0 dark:bg-surface-900">
2023-02-28 08:29:30 +00:00
<ul class="m-0 p-0 list-none">
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
<li>
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
</ul>
</div>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
2024-05-20 12:14:38 +00:00
<div class="rounded border border-surface-200 dark:border-surface-700 p-6 bg-surface-0 dark:bg-surface-900">
2023-02-28 08:29:30 +00:00
<ul class="m-0 p-0 list-none">
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
<li>
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
</ul>
2023-10-15 09:38:39 +00:00
</div>
`,
2023-09-22 12:54:14 +00:00
options: `
<template>
2024-05-20 12:14:38 +00:00
<div class="rounded border border-surface-200 dark:border-surface-700 p-6 bg-surface-0 dark:bg-surface-900">
2023-02-28 08:29:30 +00:00
<ul class="m-0 p-0 list-none">
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
<li>
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
</ul>
</div>
</template>
<script>
2023-10-15 09:38:39 +00:00
<\/script>
`,
2023-09-22 12:54:14 +00:00
composition: `
<template>
2024-05-20 12:14:38 +00:00
<div class="rounded border border-surface-200 dark:border-surface-700 p-6 bg-surface-0 dark:bg-surface-900">
2023-02-28 08:29:30 +00:00
<ul class="m-0 p-0 list-none">
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
2024-05-20 12:14:38 +00:00
<li class="mb-4">
2023-02-28 08:29:30 +00:00
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
<li>
<div class="flex">
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
2024-05-20 12:14:38 +00:00
<div class="self-center" style="flex: 1">
2023-02-28 08:29:30 +00:00
<Skeleton width="100%" class="mb-2"></Skeleton>
<Skeleton width="75%"></Skeleton>
</div>
</div>
</li>
</ul>
</div>
</template>
<script setup>
2023-10-15 09:38:39 +00:00
<\/script>
`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>