You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
708 B
19 lines
708 B
import type { ComputedRef, InjectionKey, Ref, Slots, UnwrapRef } from 'vue';
|
|
import type { TabsProps } from './tabs';
|
|
import type { TabPaneProps } from './tab-pane';
|
|
export declare type TabsPaneContext = UnwrapRef<{
|
|
uid: number;
|
|
slots: Slots;
|
|
props: TabPaneProps;
|
|
paneName: ComputedRef<string | number | undefined>;
|
|
active: ComputedRef<boolean>;
|
|
index: Ref<string | undefined>;
|
|
isClosable: ComputedRef<boolean>;
|
|
}>;
|
|
export interface TabsRootContext {
|
|
props: TabsProps;
|
|
currentName: Ref<string | number>;
|
|
registerPane: (pane: TabsPaneContext) => void;
|
|
unregisterPane: (uid: number) => void;
|
|
}
|
|
export declare const tabsRootContextKey: InjectionKey<TabsRootContext>;
|
|
|