Skeleton pt demo added

pull/3913/head
Tuğçe Küçükoğlu 2023-04-27 14:56:31 +03:00
parent 9e5baefc4c
commit 2141a3af61
4 changed files with 93 additions and 2 deletions

40
doc/skeleton/pt/PTDoc.vue Normal file
View File

@ -0,0 +1,40 @@
<template>
<DocSectionText v-bind="$attrs"> </DocSectionText>
<div class="card flex justify-content-center">
<Skeleton :pt="{ root: { class: 'w-3rem h-3rem' } }" />
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<Skeleton
:pt="{
root: { class: 'w-3rem h-3rem' }
}"
/>`,
options: `
<template>
<Skeleton
:pt="{
root: { class: 'w-3rem h-3rem' }
}"
/>
</template>`,
composition: `
<template>
<Skeleton
:pt="{
root: { class: 'w-3rem h-3rem' }
}"
/>
</template>`
}
};
}
};
</script>

View File

@ -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/skeleton.jpg" />
</div>
</template>

41
doc/skeleton/pt/index.vue Normal file
View File

@ -0,0 +1,41 @@
<template>
<div class="doc-main">
<div class="doc-intro">
<h1>Skeleton 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.skeleton',
label: 'Skeleton PT Options',
component: DocApiTable,
data: getPTOption('Skeleton')
},
{
id: 'pt.demo',
label: 'Demo',
component: PtDoc
}
]
};
}
};
</script>

View File

@ -1,5 +1,5 @@
<template> <template>
<DocComponent title="Vue Skeleton Component" header="Skeleton" description="Skeleton is a placeholder to display instead of the actual content." :componentDocs="docs" :apiDocs="['Skeleton']" /> <DocComponent title="Vue Skeleton Component" header="Skeleton" description="Skeleton is a placeholder to display instead of the actual content." :componentDocs="docs" :apiDocs="['Skeleton']" :ptTabComponent="ptComponent" />
</template> </template>
<script> <script>
@ -10,6 +10,7 @@ import ImportDoc from '@/doc/skeleton/ImportDoc.vue';
import ListDoc from '@/doc/skeleton/ListDoc.vue'; import ListDoc from '@/doc/skeleton/ListDoc.vue';
import ShapesDoc from '@/doc/skeleton/ShapesDoc.vue'; import ShapesDoc from '@/doc/skeleton/ShapesDoc.vue';
import StyleDoc from '@/doc/skeleton/StyleDoc.vue'; import StyleDoc from '@/doc/skeleton/StyleDoc.vue';
import PTComponent from '@/doc/skeleton/pt/index.vue';
export default { export default {
data() { data() {
@ -50,7 +51,8 @@ export default {
label: 'Accessibility', label: 'Accessibility',
component: Accessibility component: Accessibility
} }
] ],
ptComponent: PTComponent
}; };
} }
}; };