element-plus
Version:
A Component Library for Vue 3
18 lines (17 loc) • 736 B
TypeScript
import type { TabPaneProps, TabsProps } from 'element-plus/es/components/tabs';
import type { ComponentInternalInstance, ComputedRef, InjectionKey, Ref, ShallowReactive, UnwrapRef } from 'vue';
export declare type TabsPaneContext = UnwrapRef<{
uid: number;
instance: ShallowReactive<ComponentInternalInstance>;
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>;
updatePaneState: (pane: TabsPaneContext) => void;
}
export declare const tabsRootContextKey: InjectionKey<TabsRootContext>;