ProgressSpinner pt demo added
parent
2a25486950
commit
1af654c740
|
@ -0,0 +1,58 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs" :level="2" />
|
||||
<div class="card flex justify-content-center">
|
||||
<ProgressSpinner
|
||||
:pt="{
|
||||
spinner: { style: { animationDuration: '0s' } },
|
||||
circle: { style: { stroke: '#F59E0B', strokeWidth: 3, animation: 'none' } }
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
basic: `
|
||||
<ProgressSpinner
|
||||
:pt="{
|
||||
spinner: { style: { animationDuration: '0s' } },
|
||||
circle: { style: { stroke: '#F59E0B', strokeWidth: 3, animation: 'none' } }
|
||||
}"
|
||||
/>`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card flex justify-content-center">
|
||||
<ProgressSpinner
|
||||
:pt="{
|
||||
spinner: { style: { animationDuration: '0s' } },
|
||||
circle: { style: { stroke: '#F59E0B', strokeWidth: 3, animation: 'none' } }
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<\/script>`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card flex justify-content-center">
|
||||
<ProgressSpinner
|
||||
:pt="{
|
||||
spinner: { style: { animationDuration: '0s' } },
|
||||
circle: { style: { stroke: '#F59E0B', strokeWidth: 3, animation: 'none' } }
|
||||
}"
|
||||
/>
|
||||
</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/progressspinner.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 ProgressSpinner Component" header="ProgressSpinner" description="ProgressBar is a process status indicator." :componentDocs="docs" :apiDocs="['ProgressSpinner']" />
|
||||
<DocComponent title="Vue ProgressSpinner Component" header="ProgressSpinner" description="ProgressBar is a process status indicator." :componentDocs="docs" :apiDocs="['ProgressSpinner']" :ptTabComponent="ptComponent" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -8,6 +8,7 @@ import BasicDoc from '@/doc/progressspinner/BasicDoc';
|
|||
import CustomDoc from '@/doc/progressspinner/CustomDoc';
|
||||
import ImportDoc from '@/doc/progressspinner/ImportDoc';
|
||||
import StyleDoc from '@/doc/progressspinner/StyleDoc';
|
||||
import PTComponent from '@/doc/progressspinner/pt/index.vue';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
|
@ -38,7 +39,8 @@ export default {
|
|||
label: 'Accessibility',
|
||||
component: AccessibilityDoc
|
||||
}
|
||||
]
|
||||
],
|
||||
ptComponent: PTComponent
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue