InputGroup passthrough section added

pull/4767/head
tugcekucukoglu 2023-11-07 09:16:02 +03:00
parent a0fbdb40f6
commit 5192b34ebc
4 changed files with 81 additions and 2 deletions

View File

@ -0,0 +1,9 @@
<template>
<DocSectionText id="accessibility" label="Accessibility" v-bind="$attrs">
<h3>Screen Reader</h3>
<p>InputGroup and InputGroupAddon does not require any roles and attributes.</p>
<h3>Keyboard Support</h3>
<p>Component does not include any interactive elements.</p>
</DocSectionText>
</template>

View File

@ -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/wireframe-placeholder.jpg" />
</div>
</template>

View File

@ -0,0 +1,47 @@
<template>
<div class="doc-main">
<div class="doc-intro">
<h1>InputGroup 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.inputgroup',
label: 'InputGroup PT Options',
component: DocApiTable,
data: getPTOption('InputGroup')
},
{
id: 'pt.doc.inputgroupaddon',
label: 'InputGroupAddon PT Options',
component: DocApiTable,
data: getPTOption('InputGroupAddon')
}
// {
// id: 'pt.demo',
// label: 'Demo',
// component: PtDoc
// }
]
};
}
};
</script>

View File

@ -1,5 +1,12 @@
<template> <template>
<DocComponent title="Vue InputGroup Component" header="InputGroup" description="Text, icon, buttons and other content can be grouped next to an input." :componentDocs="docs" /> <DocComponent
title="Vue InputGroup Component"
header="InputGroup"
description="Text, icon, buttons and other content can be grouped next to an input."
:componentDocs="docs"
:apiDocs="['InputGroup', 'InputGroupAddon']"
:ptTabComponent="ptComponent"
/>
</template> </template>
<script> <script>
@ -7,6 +14,8 @@ import BasicDoc from '@/doc/inputgroup/BasicDoc.vue';
import ButtonDoc from '@/doc/inputgroup/ButtonDoc.vue'; import ButtonDoc from '@/doc/inputgroup/ButtonDoc.vue';
import CheckboxDoc from '@/doc/inputgroup/CheckboxDoc.vue'; import CheckboxDoc from '@/doc/inputgroup/CheckboxDoc.vue';
import MultipleDoc from '@/doc/inputgroup/MultipleDoc.vue'; import MultipleDoc from '@/doc/inputgroup/MultipleDoc.vue';
import PTComponent from '@/doc/inputgroup/pt/index.vue';
import AccessibilityDoc from '@/doc/inputgroup/AccessibilityDoc.vue';
export default { export default {
data() { data() {
@ -31,8 +40,14 @@ export default {
id: 'checkbox', id: 'checkbox',
label: 'Check & Radio', label: 'Check & Radio',
component: CheckboxDoc component: CheckboxDoc
},
{
id: 'accessibility',
label: 'Accessibility',
component: AccessibilityDoc
} }
] ],
ptComponent: PTComponent
}; };
} }
}; };