From aa32ab6eca52f21489e99a015073e3f3fd3c78ce Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 1 Dec 2021 15:06:35 +0300 Subject: [PATCH] Fixed #1836 - For AccordionTab --- src/components/accordiontab/AccordionTab.d.ts | 43 ++++++++++++++++--- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/src/components/accordiontab/AccordionTab.d.ts b/src/components/accordiontab/AccordionTab.d.ts index 9747a87cb..c40099536 100755 --- a/src/components/accordiontab/AccordionTab.d.ts +++ b/src/components/accordiontab/AccordionTab.d.ts @@ -1,16 +1,45 @@ import { VNode } from 'vue'; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; interface AccordionTabProps { - header?: string; - disabled?: boolean; + /** + * Orientation of tab headers. + */ + header?: string | undefined; + /** + * Whether the tab is disabled. + */ + disabled?: boolean | undefined; } -declare class AccordionTab { - $props: AccordionTabProps; - $slot: { - '': VNode[]; - header: VNode[]; +interface AccordionTabSlots { + /** + * Default slot for content. + */ + default: () => VNode[]; + /** + * Custom content for the title section of a panel is defined using the header template. + */ + header: () => VNode[]; +} + +type AccordionTabEmits = { } + +declare class AccordionTab extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + AccordionTab: GlobalComponentConstructor } } +/** + * + * AccordionTab is a helper component for Accordion + * + * Demos: + * + * - [Accordion](https://www.primefaces.org/primevue/showcase/#/accordion) + * + */ export default AccordionTab;