Fixed #1836 - For AccordionTab
parent
07f85b21ca
commit
aa32ab6eca
|
@ -1,16 +1,45 @@
|
||||||
import { VNode } from 'vue';
|
import { VNode } from 'vue';
|
||||||
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||||
|
|
||||||
interface AccordionTabProps {
|
interface AccordionTabProps {
|
||||||
header?: string;
|
/**
|
||||||
disabled?: boolean;
|
* Orientation of tab headers.
|
||||||
|
*/
|
||||||
|
header?: string | undefined;
|
||||||
|
/**
|
||||||
|
* Whether the tab is disabled.
|
||||||
|
*/
|
||||||
|
disabled?: boolean | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class AccordionTab {
|
interface AccordionTabSlots {
|
||||||
$props: AccordionTabProps;
|
/**
|
||||||
$slot: {
|
* Default slot for content.
|
||||||
'': VNode[];
|
*/
|
||||||
header: VNode[];
|
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<AccordionTabProps, AccordionTabSlots, AccordionTabEmits> { }
|
||||||
|
|
||||||
|
declare module '@vue/runtime-core' {
|
||||||
|
interface GlobalComponents {
|
||||||
|
AccordionTab: GlobalComponentConstructor<AccordionTab>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* AccordionTab is a helper component for Accordion
|
||||||
|
*
|
||||||
|
* Demos:
|
||||||
|
*
|
||||||
|
* - [Accordion](https://www.primefaces.org/primevue/showcase/#/accordion)
|
||||||
|
*
|
||||||
|
*/
|
||||||
export default AccordionTab;
|
export default AccordionTab;
|
||||||
|
|
Loading…
Reference in New Issue