Skip to content

Commit

Permalink
Fixed #1836 - For TabPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Dec 1, 2021
1 parent 7755627 commit 6d7d5a4
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions src/components/tabpanel/TabPanel.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,42 @@
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';

interface TabPanelProps {
header?: any;
disabled?: boolean;
export interface TabPanelProps {
/**
* Orientation of tab headers.
*/
header?: string | undefined;
/**
* Whether the tab is disabled.
*/
disabled?: boolean | undefined;
}

declare class TabPanel {
$props: TabPanelProps;
$slots: {
'': VNode[];
export interface TabPanelSlots {
/**
* Custom content template.
*/
default: () => VNode[];
}

export declare type TabPanelEmits = {
}

declare class TabPanel extends ClassComponent<TabPanelProps, TabPanelSlots, TabPanelEmits> { }

declare module '@vue/runtime-core' {
interface GlobalComponents {
TabPanel: GlobalComponentConstructor<TabPanel>
}
}

/**
*
* TabPanel is a helper component for TabView component.
*
* Demos:
*
* - [TabPanel](https://www.primefaces.org/primevue/showcase/#/tabpanel)
*
*/
export default TabPanel;

0 comments on commit 6d7d5a4

Please sign in to comment.