2022-09-09 20:41:18 +00:00
|
|
|
<template>
|
2023-07-28 05:56:58 +00:00
|
|
|
<DocComponent
|
|
|
|
title="Vue Accordion Component"
|
|
|
|
header="Accordion"
|
2024-04-24 22:43:09 +00:00
|
|
|
description="Accordion groups a collection of contents in panels."
|
2023-07-28 05:56:58 +00:00
|
|
|
:componentDocs="docs"
|
2024-04-24 22:43:09 +00:00
|
|
|
:apiDocs="['Accordion', 'AccordionPanel', 'AccordionHeader', 'AccordionContent']"
|
2023-07-28 05:56:58 +00:00
|
|
|
:ptTabComponent="ptComponent"
|
|
|
|
:themingDocs="themingDoc"
|
|
|
|
/>
|
2022-09-09 20:41:18 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2023-09-21 11:21:43 +00:00
|
|
|
import AccessibilityDoc from '@/doc/accordion/AccessibilityDoc.vue';
|
|
|
|
import BasicDoc from '@/doc/accordion/BasicDoc.vue';
|
2023-02-28 08:29:30 +00:00
|
|
|
import ControlledDoc from '@/doc/accordion/ControlledDoc.vue';
|
|
|
|
import Disabled from '@/doc/accordion/DisabledDoc.vue';
|
2023-09-21 11:21:43 +00:00
|
|
|
import DynamicDoc from '@/doc/accordion/DynamicDoc.vue';
|
|
|
|
import ImportDoc from '@/doc/accordion/ImportDoc.vue';
|
2023-02-28 08:29:30 +00:00
|
|
|
import MultipleDoc from '@/doc/accordion/MultipleDoc.vue';
|
|
|
|
import TemplateDoc from '@/doc/accordion/TemplateDoc.vue';
|
2023-03-31 23:42:09 +00:00
|
|
|
import PTComponent from '@/doc/accordion/pt/index.vue';
|
2023-08-01 13:00:18 +00:00
|
|
|
import ThemingDoc from '@/doc/accordion/theming/index.vue';
|
2023-04-11 07:17:19 +00:00
|
|
|
|
2022-09-09 20:41:18 +00:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2023-02-28 08:29:30 +00:00
|
|
|
docs: [
|
|
|
|
{
|
|
|
|
id: 'import',
|
|
|
|
label: 'Import',
|
|
|
|
component: ImportDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'basic',
|
|
|
|
label: 'Basic',
|
|
|
|
component: BasicDoc
|
|
|
|
},
|
2023-04-11 07:17:19 +00:00
|
|
|
{
|
|
|
|
id: 'dynamic',
|
|
|
|
label: 'Dynamic',
|
|
|
|
component: DynamicDoc
|
|
|
|
},
|
2022-09-09 20:41:18 +00:00
|
|
|
{
|
2023-02-28 08:29:30 +00:00
|
|
|
id: 'multiple',
|
|
|
|
label: 'Multiple',
|
|
|
|
component: MultipleDoc
|
2022-09-09 20:41:18 +00:00
|
|
|
},
|
|
|
|
{
|
2023-02-28 08:29:30 +00:00
|
|
|
id: 'disabled',
|
|
|
|
label: 'Disabled',
|
|
|
|
component: Disabled
|
2022-09-09 20:41:18 +00:00
|
|
|
},
|
|
|
|
{
|
2023-02-28 08:29:30 +00:00
|
|
|
id: 'controlled',
|
|
|
|
label: 'Controlled',
|
|
|
|
component: ControlledDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'template',
|
|
|
|
label: 'Template',
|
|
|
|
component: TemplateDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'accessibility',
|
|
|
|
label: 'Accessibility',
|
|
|
|
component: AccessibilityDoc
|
2022-09-09 20:41:18 +00:00
|
|
|
}
|
2023-03-31 23:42:09 +00:00
|
|
|
],
|
2023-07-28 05:56:58 +00:00
|
|
|
ptComponent: PTComponent,
|
|
|
|
themingDoc: ThemingDoc
|
2022-09-09 20:41:18 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|