Skeleton pt demo added
parent
9e5baefc4c
commit
2141a3af61
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -1,5 +1,5 @@
|
|||
<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>
|
||||
|
||||
<script>
|
||||
|
@ -10,6 +10,7 @@ import ImportDoc from '@/doc/skeleton/ImportDoc.vue';
|
|||
import ListDoc from '@/doc/skeleton/ListDoc.vue';
|
||||
import ShapesDoc from '@/doc/skeleton/ShapesDoc.vue';
|
||||
import StyleDoc from '@/doc/skeleton/StyleDoc.vue';
|
||||
import PTComponent from '@/doc/skeleton/pt/index.vue';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
@ -50,7 +51,8 @@ export default {
|
|||
label: 'Accessibility',
|
||||
component: Accessibility
|
||||
}
|
||||
]
|
||||
],
|
||||
ptComponent: PTComponent
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue