From 0406b2ce6157819db1f0972f097640c5886a2776 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 28 Feb 2023 10:05:51 +0000 Subject: [PATCH] Update Accordion.d.ts --- components/accordion/Accordion.d.ts | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/components/accordion/Accordion.d.ts b/components/accordion/Accordion.d.ts index 6f9c18379..4b734b4b0 100755 --- a/components/accordion/Accordion.d.ts +++ b/components/accordion/Accordion.d.ts @@ -41,7 +41,7 @@ export interface AccordionTabCloseEvent extends AccordionTabOpenEvent {} export interface AccordionClickEvent extends AccordionTabOpenEvent {} /** - * Defines valid properties in AccordionTab component. + * Defines valid properties in Accordion component. */ export interface AccordionProps { /** @@ -53,7 +53,7 @@ export interface AccordionProps { * Index of the active tab or an array of indexes in multiple mode. * @defaultValue null */ - activeIndex?: number | number[] | undefined; + activeIndex?: number | number[] | null | undefined; /** * When enabled, hidden tabs are not rendered at all. Defaults to false that hides tabs with css. * @defaultValue false @@ -82,17 +82,17 @@ export interface AccordionProps { } /** - * Defines valid slots in Acordion slots. + * Defines valid slots in Accordion slots. */ -export interface AccordionSlots { +export declare type AccordionSlots = { /** * Default slot to detect AccordionTab components. */ default(): VNode[]; -} +}; /** - * Defines valid emits in Acordion component. + * Defines valid emits in Accordion component. */ export interface AccordionEmits { /** @@ -126,6 +126,8 @@ export interface AccordionEmits { * --- --- * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg) * + * @group Component + * */ export declare class Accordion extends ClassComponent {} @@ -135,17 +137,4 @@ declare module '@vue/runtime-core' { } } -/** - * - * Accordion groups a collection of contents in tabs. - * - * Helper Components: - * - * - AccordionTab - * - * Demos: - * - * - [Accordion](https://www.primefaces.org/primevue/accordion) - * - */ export default Accordion;