primevue-mirror/doc/inplace/ImageDoc.vue

71 lines
2.2 KiB
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Any content such as an image can be placed inside an Inplace.</p>
</DocSectionText>
<div class="card">
<Inplace class="w-full">
<template #display>
<span class="pi pi-search" style="vertical-align: middle"></span>
<span style="margin-left: 0.5rem; vertical-align: middle">View Picture</span>
</template>
<template #content>
<img class="w-full" alt="Nature" src="https://primefaces.org/cdn/primevue/images/nature/nature1.jpg" />
</template>
</Inplace>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
2023-08-16 13:58:31 +00:00
basic: `<Inplace>
2023-02-28 08:29:30 +00:00
<template #display>
<span class="pi pi-search" style="vertical-align: middle"></span>
<span style="margin-left: 0.5rem; vertical-align: middle">View Picture</span>
</template>
<template #content>
<img class="w-full" alt="Nature" src="/images/nature/nature1.jpg" />
</template>
</Inplace>`,
2023-08-16 13:58:31 +00:00
options: `<template>
2023-02-28 08:29:30 +00:00
<div class="card">
<Inplace>
<template #display>
<span class="pi pi-search" style="vertical-align: middle"></span>
<span style="margin-left: 0.5rem; vertical-align: middle">View Picture</span>
</template>
<template #content>
<img class="w-full" src="https://primefaces.org/cdn/primevue/images/nature/nature1.jpg"/>
</template>
</Inplace>
</div>
</template>
<script>
<\/script>`,
2023-08-16 13:58:31 +00:00
composition: `<template>
2023-02-28 08:29:30 +00:00
<div class="card">
<Inplace>
<template #display>
<span class="pi pi-search" style="vertical-align: middle"></span>
<span style="margin-left: 0.5rem; vertical-align: middle">View Picture</span>
</template>
<template #content>
<img class="w-full" alt="Nature" src="https://primefaces.org/cdn/primevue/images/nature/nature1.jpg" />
</template>
</Inplace>
</div>
</template>
<script setup>
<\/script>`
}
};
}
};
</script>