Image pt demo added
parent
3ec876d1e1
commit
8a3c948f5b
|
@ -0,0 +1,65 @@
|
|||
<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: {
|
||||
basic: `
|
||||
<Image
|
||||
src="https://primefaces.org/cdn/primevue/images/galleria/galleria10.jpg"
|
||||
alt="Image"
|
||||
width="250"
|
||||
preview
|
||||
:pt="{
|
||||
image: { class: 'w-15rem' }
|
||||
}"
|
||||
/>`,
|
||||
options: `
|
||||
<template>
|
||||
<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>`,
|
||||
composition: `
|
||||
<template>
|
||||
<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>
|
|
@ -0,0 +1,8 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>{{ $attrs.description }}</p>
|
||||
</DocSectionText>
|
||||
<div class="card">
|
||||
<img class="w-full" src="https://primefaces.org/cdn/primevue/images/pt/wireframe-placeholder.jpg" />
|
||||
</div>
|
||||
</template>
|
|
@ -0,0 +1,41 @@
|
|||
<template>
|
||||
<div class="doc-main">
|
||||
<div class="doc-intro">
|
||||
<h1>Image Pass Through</h1>
|
||||
</div>
|
||||
<DocSections :docs="docs" />
|
||||
</div>
|
||||
<DocSectionNav :docs="docs" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DocApiTable from '@/components/doc/DocApiTable.vue';
|
||||
import { getPTOption } from '@/components/doc/helpers/PTHelper.js';
|
||||
import PtDoc from './PTDoc.vue';
|
||||
import PTImage from './PTImage.vue';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
docs: [
|
||||
{
|
||||
id: 'pt.image',
|
||||
label: 'Wireframe',
|
||||
component: PTImage
|
||||
},
|
||||
{
|
||||
id: 'pt.doc.image',
|
||||
label: 'Image PT Options',
|
||||
component: DocApiTable,
|
||||
data: getPTOption('Image')
|
||||
},
|
||||
{
|
||||
id: 'pt.demo',
|
||||
label: 'Demo',
|
||||
component: PtDoc
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<DocComponent title="Vue Image Component" header="Image" description="Displays a single image with preview and tranformation options." :componentDocs="docs" :apiDocs="['Image']" />
|
||||
<DocComponent title="Vue Image Component" header="Image" description="Displays a single image with preview and tranformation options." :componentDocs="docs" :apiDocs="['Image']" :ptTabComponent="ptComponent" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -9,6 +9,7 @@ import ImportDoc from '@/doc/image/ImportDoc';
|
|||
import PreviewDoc from '@/doc/image/PreviewDoc';
|
||||
import StyleDoc from '@/doc/image/StyleDoc';
|
||||
import TemplateDoc from '@/doc/image/TemplateDoc';
|
||||
import PTComponent from '@/doc/image/pt/index.vue';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
@ -44,7 +45,8 @@ export default {
|
|||
label: 'Accessibility',
|
||||
component: AccessibilityDoc
|
||||
}
|
||||
]
|
||||
],
|
||||
ptComponent: PTComponent
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue