94 lines
3.4 KiB
Vue
94 lines
3.4 KiB
Vue
<template>
|
|
<DocSectionText v-bind="$attrs">
|
|
<p>Sample Card implementation using different Skeleton components and PrimeFlex CSS utilities.</p>
|
|
</DocSectionText>
|
|
<div class="card">
|
|
<div class="border-round border-1 surface-border p-4 surface-card">
|
|
<div class="flex mb-3">
|
|
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
|
|
<div>
|
|
<Skeleton width="10rem" class="mb-2"></Skeleton>
|
|
<Skeleton width="5rem" class="mb-2"></Skeleton>
|
|
<Skeleton height=".5rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
<Skeleton width="100%" height="150px"></Skeleton>
|
|
<div class="flex justify-content-between mt-3">
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<DocSectionCode :code="code" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
code: {
|
|
basic: `<div class="border-round border-1 surface-border p-4 surface-card">
|
|
<div class="flex mb-3">
|
|
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
|
|
<div>
|
|
<Skeleton width="10rem" class="mb-2"></Skeleton>
|
|
<Skeleton width="5rem" class="mb-2"></Skeleton>
|
|
<Skeleton height=".5rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
<Skeleton width="100%" height="150px"></Skeleton>
|
|
<div class="flex justify-content-between mt-3">
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
</div>
|
|
</div>`,
|
|
options: `<template>
|
|
<div class="card">
|
|
<div class="border-round border-1 surface-border p-4 surface-card">
|
|
<div class="flex mb-3">
|
|
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
|
|
<div>
|
|
<Skeleton width="10rem" class="mb-2"></Skeleton>
|
|
<Skeleton width="5rem" class="mb-2"></Skeleton>
|
|
<Skeleton height=".5rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
<Skeleton width="100%" height="150px"></Skeleton>
|
|
<div class="flex justify-content-between mt-3">
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
<\/script>`,
|
|
composition: `<template>
|
|
<div class="card">
|
|
<div class="border-round border-1 surface-border p-4 surface-card">
|
|
<div class="flex mb-3">
|
|
<Skeleton shape="circle" size="4rem" class="mr-2"></Skeleton>
|
|
<div>
|
|
<Skeleton width="10rem" class="mb-2"></Skeleton>
|
|
<Skeleton width="5rem" class="mb-2"></Skeleton>
|
|
<Skeleton height=".5rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
<Skeleton width="100%" height="150px"></Skeleton>
|
|
<div class="flex justify-content-between mt-3">
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
<Skeleton width="4rem" height="2rem"></Skeleton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
<\/script>`
|
|
}
|
|
};
|
|
}
|
|
};
|
|
</script>
|