Update Accordion.d.ts

pull/3684/head^2
mertsincan 2023-02-28 10:05:51 +00:00
parent dfcc8ef4e7
commit 0406b2ce61
1 changed files with 8 additions and 19 deletions

View File

@ -41,7 +41,7 @@ export interface AccordionTabCloseEvent extends AccordionTabOpenEvent {}
export interface AccordionClickEvent extends AccordionTabOpenEvent {} export interface AccordionClickEvent extends AccordionTabOpenEvent {}
/** /**
* Defines valid properties in AccordionTab component. * Defines valid properties in Accordion component.
*/ */
export interface AccordionProps { export interface AccordionProps {
/** /**
@ -53,7 +53,7 @@ export interface AccordionProps {
* Index of the active tab or an array of indexes in multiple mode. * Index of the active tab or an array of indexes in multiple mode.
* @defaultValue null * @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. * When enabled, hidden tabs are not rendered at all. Defaults to false that hides tabs with css.
* @defaultValue false * @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 slot to detect AccordionTab components.
*/ */
default(): VNode[]; default(): VNode[];
} };
/** /**
* Defines valid emits in Acordion component. * Defines valid emits in Accordion component.
*/ */
export interface AccordionEmits { export interface AccordionEmits {
/** /**
@ -126,6 +126,8 @@ export interface AccordionEmits {
* --- --- * --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg) * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg)
* *
* @group Component
*
*/ */
export declare class Accordion extends ClassComponent<AccordionProps, AccordionSlots, AccordionEmits> {} export declare class Accordion extends ClassComponent<AccordionProps, AccordionSlots, AccordionEmits> {}
@ -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; export default Accordion;