2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Use the <i>image</i> property to display an image as an Avatar.</p>
|
|
|
|
</DocSectionText>
|
|
|
|
<div class="card">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-wrap gap-8">
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="flex-auto">
|
|
|
|
<h5>Image</h5>
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/asiyajavayant.png" class="mr-2" size="large" shape="circle" />
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/onyamalimba.png" shape="circle" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex-auto">
|
|
|
|
<h5>Badge</h5>
|
2023-03-20 08:09:34 +00:00
|
|
|
<Avatar v-badge.danger="4" class="p-overlay-badge" image="https://primefaces.org/cdn/primevue/images/organization/walter.jpg" size="xlarge" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex-auto">
|
|
|
|
<h5>Gravatar</h5>
|
2024-05-20 12:14:38 +00:00
|
|
|
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex items-center justify-center mr-2" size="xlarge" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<Avatar image="/images/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
2023-02-28 08:29:30 +00:00
|
|
|
<Avatar image="/images/avatar/asiyajavayant.png" class="mr-2" size="large" shape="circle" />
|
|
|
|
<Avatar image="/images/avatar/onyamalimba.png" shape="circle" />
|
|
|
|
|
|
|
|
<Avatar v-badge.danger="4" class="p-overlay-badge" image="/images/organization/walter.jpg" size="xlarge" />
|
|
|
|
|
2024-05-20 12:14:38 +00:00
|
|
|
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex items-center justify-center mr-2" size="xlarge" />
|
2023-10-15 09:38:39 +00:00
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-wrap gap-8">
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="flex-auto">
|
|
|
|
<h5>Image</h5>
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/asiyajavayant.png" class="mr-2" size="large" shape="circle" />
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/onyamalimba.png" shape="circle" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex-auto">
|
|
|
|
<h5>Badge</h5>
|
|
|
|
<Avatar v-badge.danger="4" class="p-overlay-badge" image="https://primefaces.org/cdn/primevue/images/organization/walter.jpg" size="xlarge" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex-auto">
|
|
|
|
<h5>Gravatar</h5>
|
2024-05-20 12:14:38 +00:00
|
|
|
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex items-center justify-center mr-2" size="xlarge" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-wrap gap-8">
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="flex-auto">
|
|
|
|
<h5>Image</h5>
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/asiyajavayant.png" class="mr-2" size="large" shape="circle" />
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/onyamalimba.png" shape="circle" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex-auto">
|
|
|
|
<h5>Badge</h5>
|
|
|
|
<Avatar v-badge.danger="4" class="p-overlay-badge" image="https://primefaces.org/cdn/primevue/images/organization/walter.jpg" size="xlarge" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex-auto">
|
|
|
|
<h5>Gravatar</h5>
|
2024-05-20 12:14:38 +00:00
|
|
|
<Avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex items-center justify-center mr-2" size="xlarge" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
2023-02-28 08:29:30 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|