ProgressBar pt demo added
parent
a3e0ae9fee
commit
498b40f80f
|
@ -0,0 +1,52 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs" :level="2" />
|
||||
<div class="card">
|
||||
<ProgressBar
|
||||
:value="50"
|
||||
:pt="{
|
||||
value: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)' } }
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
basic: `
|
||||
<ProgressBar :value="50"
|
||||
:pt="{
|
||||
value: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)' } }
|
||||
}" />`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<ProgressBar :value="50"
|
||||
:pt="{
|
||||
value: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)' } }
|
||||
}" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<\/script>`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<ProgressBar :value="50"
|
||||
:pt="{
|
||||
value: { style: { background: 'linear-gradient(to right, #8e2de2, #4a00e0)' } }
|
||||
}" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
<\/script>`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,8 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>{{ $attrs.description }}</p>
|
||||
</DocSectionText>
|
||||
<div>
|
||||
<img class="w-full" src="https://primefaces.org/cdn/primevue/images/pt/progressbar.jpg" />
|
||||
</div>
|
||||
</template>
|
|
@ -0,0 +1,41 @@
|
|||
<template>
|
||||
<div class="doc-main">
|
||||
<div class="doc-intro">
|
||||
<h1>ProgressBar 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',
|
||||
label: 'ProgressBar Elements',
|
||||
component: DocApiTable,
|
||||
data: getPTOption('ProgressBar')
|
||||
},
|
||||
{
|
||||
id: 'pt.demo',
|
||||
label: 'Demo',
|
||||
component: PtDoc
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<DocComponent title="Vue ProgressBar Component" header="ProgressBar" description="ProgressBar is a process status indicator." :componentDocs="docs" :apiDocs="['ProgressBar']" />
|
||||
<DocComponent title="Vue ProgressBar Component" header="ProgressBar" description="ProgressBar is a process status indicator." :componentDocs="docs" :apiDocs="['ProgressBar']" :ptTabComponent="ptComponent" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -10,6 +10,7 @@ import ImportDoc from '@/doc/progressbar/ImportDoc';
|
|||
import IndeterminateDoc from '@/doc/progressbar/IndeterminateDoc';
|
||||
import StyleDoc from '@/doc/progressbar/StyleDoc';
|
||||
import TemplateDoc from '@/doc/progressbar/TemplateDoc';
|
||||
import PTComponent from '@/doc/progressbar/pt/index.vue';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
@ -50,7 +51,8 @@ export default {
|
|||
label: 'Accessibility',
|
||||
component: AccessibilityDoc
|
||||
}
|
||||
]
|
||||
],
|
||||
ptComponent: PTComponent
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue