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

68 lines
1.5 KiB
Vue
Raw Normal View History

2023-05-04 07:46:38 +00:00
<template>
<DocSectionText v-bind="$attrs"></DocSectionText>
<div class="card flex justify-content-center">
<Image
src="https://primefaces.org/cdn/primevue/images/galleria/galleria10.jpg"
alt="Image"
width="250"
preview
:pt="{
image: { class: 'w-15rem' }
}"
/>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
2023-09-22 12:54:14 +00:00
basic: `
<Image
2023-05-04 07:46:38 +00:00
src="https://primefaces.org/cdn/primevue/images/galleria/galleria10.jpg"
alt="Image"
width="250"
preview
:pt="{
image: { class: 'w-15rem' }
}"
2023-10-15 09:38:39 +00:00
/>
`,
2023-09-22 12:54:14 +00:00
options: `
<template>
2023-05-04 07:46:38 +00:00
<div class="card flex justify-content-center">
<Image
src="https://primefaces.org/cdn/primevue/images/galleria/galleria10.jpg"
alt="Image"
width="250"
preview
:pt="{
image: { class: 'w-15rem' }
}"
/>
</div>
2023-10-15 09:38:39 +00:00
</template>
`,
2023-09-22 12:54:14 +00:00
composition: `
<template>
2023-05-04 07:46:38 +00:00
<div class="card flex justify-content-center">
<Image
src="https://primefaces.org/cdn/primevue/images/galleria/galleria10.jpg"
alt="Image"
width="250"
preview
:pt="{
image: { class: 'w-15rem' }
}"
/>
</div>
</template>`
}
};
}
};
</script>