primevue-mirror/doc/avatar/pt/PTDoc.vue

38 lines
1.0 KiB
Vue
Raw Normal View History

2023-04-21 12:05:15 +00:00
<template>
<DocSectionText v-bind="$attrs"> </DocSectionText>
<div class="card flex justify-content-center">
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" :pt="{ image: { class: 'w-4rem h-4rem' } }" />
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
2023-08-16 13:58:31 +00:00
basic: `<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png"
2023-04-21 12:05:15 +00:00
:pt="{
image: { class: 'w-4rem h-4rem' }
}"
/>`,
2023-08-16 13:58:31 +00:00
options: `<template>
2023-04-21 12:05:15 +00:00
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png"
:pt="{
image: { class: 'w-4rem h-4rem' }
}"
/>
</template>`,
2023-08-16 13:58:31 +00:00
composition: `<template>
2023-04-21 12:05:15 +00:00
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png"
:pt="{
image: { class: 'w-4rem h-4rem' }
}"
/>
</template>`
}
};
}
};
</script>