2022-09-09 10:25:14 +00:00
|
|
|
<template>
|
2023-07-26 17:42:29 +00:00
|
|
|
<DocComponent
|
|
|
|
title="Vue Button Component"
|
|
|
|
header="Button"
|
|
|
|
description="Button is an extension to standard input element with icons and theming."
|
|
|
|
:componentDocs="docs"
|
2024-02-16 11:08:18 +00:00
|
|
|
:apiDocs="['Button', 'ButtonGroup']"
|
2023-07-26 17:42:29 +00:00
|
|
|
:ptTabComponent="ptComponent"
|
|
|
|
:themingDocs="themingDoc"
|
|
|
|
/>
|
2022-09-09 10:25:14 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2023-02-28 08:29:30 +00:00
|
|
|
import AccessibilityDoc from '@/doc/button/AccessibilityDoc.vue';
|
2024-05-25 11:42:57 +00:00
|
|
|
import BadgeDoc from '@/doc/button/BadgeDoc.vue';
|
2023-02-28 08:29:30 +00:00
|
|
|
import BasicDoc from '@/doc/button/BasicDoc.vue';
|
2024-02-16 11:08:18 +00:00
|
|
|
import ButtonGroupDoc from '@/doc/button/ButtonGroupDoc.vue';
|
2023-02-28 08:29:30 +00:00
|
|
|
import DisabledDoc from '@/doc/button/DisabledDoc.vue';
|
|
|
|
import IconOnlyDoc from '@/doc/button/IconOnlyDoc.vue';
|
|
|
|
import IconsDoc from '@/doc/button/IconsDoc.vue';
|
|
|
|
import ImportDoc from '@/doc/button/ImportDoc.vue';
|
|
|
|
import LinkDoc from '@/doc/button/LinkDoc.vue';
|
|
|
|
import LoadingDoc from '@/doc/button/LoadingDoc.vue';
|
|
|
|
import OutlinedDoc from '@/doc/button/OutlinedDoc.vue';
|
|
|
|
import RaisedDoc from '@/doc/button/RaisedDoc.vue';
|
|
|
|
import RaisedTextDoc from '@/doc/button/RaisedTextDoc.vue';
|
|
|
|
import RoundedDoc from '@/doc/button/RoundedDoc.vue';
|
|
|
|
import SeverityDoc from '@/doc/button/SeverityDoc.vue';
|
2024-05-09 12:51:13 +00:00
|
|
|
import SizesDoc from '@/doc/button/SizesDoc.vue';
|
2023-02-28 08:29:30 +00:00
|
|
|
import TemplateDoc from '@/doc/button/TemplateDoc.vue';
|
|
|
|
import TextDoc from '@/doc/button/TextDoc.vue';
|
2023-04-28 09:47:56 +00:00
|
|
|
import PTComponent from '@/doc/button/pt/index.vue';
|
2023-07-26 17:42:29 +00:00
|
|
|
import ThemingDoc from '@/doc/button/theming/index.vue';
|
2023-04-28 09:47:56 +00:00
|
|
|
|
2022-09-09 10:25:14 +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
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'link',
|
|
|
|
label: 'Link',
|
|
|
|
component: LinkDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'icons',
|
|
|
|
label: 'Icons',
|
|
|
|
component: IconsDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'loading',
|
|
|
|
label: 'Loading',
|
|
|
|
component: LoadingDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'severity',
|
|
|
|
label: 'Severity',
|
|
|
|
component: SeverityDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'disabled',
|
|
|
|
label: 'Disabled',
|
|
|
|
component: DisabledDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'raised',
|
|
|
|
label: 'Raised',
|
|
|
|
component: RaisedDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'rounded',
|
|
|
|
label: 'Rounded',
|
|
|
|
component: RoundedDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'text',
|
|
|
|
label: 'Text',
|
|
|
|
component: TextDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'raisedtext',
|
|
|
|
label: 'Raised Text',
|
|
|
|
component: RaisedTextDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'outlined',
|
|
|
|
label: 'Outlined',
|
|
|
|
component: OutlinedDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'icononly',
|
|
|
|
label: 'Icon Only',
|
|
|
|
component: IconOnlyDoc
|
|
|
|
},
|
|
|
|
{
|
2024-05-25 11:42:57 +00:00
|
|
|
id: 'badge',
|
|
|
|
label: 'Badge',
|
|
|
|
component: BadgeDoc
|
2023-02-28 08:29:30 +00:00
|
|
|
},
|
|
|
|
{
|
2024-02-16 11:08:18 +00:00
|
|
|
id: 'buttongroup',
|
|
|
|
label: 'Button Group',
|
|
|
|
component: ButtonGroupDoc
|
2024-05-09 12:51:13 +00:00
|
|
|
},
|
2023-02-28 08:29:30 +00:00
|
|
|
{
|
|
|
|
id: 'sizes',
|
|
|
|
label: 'Sizes',
|
|
|
|
component: SizesDoc
|
2024-05-09 12:51:13 +00:00
|
|
|
},
|
2023-02-28 08:29:30 +00:00
|
|
|
{
|
|
|
|
id: 'template',
|
|
|
|
label: 'Template',
|
|
|
|
component: TemplateDoc
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'accessibility',
|
|
|
|
label: 'Accessibility',
|
|
|
|
component: AccessibilityDoc
|
|
|
|
}
|
2023-04-28 09:47:56 +00:00
|
|
|
],
|
2023-07-26 17:42:29 +00:00
|
|
|
ptComponent: PTComponent,
|
|
|
|
themingDoc: ThemingDoc
|
2022-09-09 10:25:14 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|