UNPKG

hongluan-ui

Version:
20 lines (19 loc) 745 B
import type { TabsProps, TabPaneProps } from 'hongluan-ui/es/components/tabs'; import type { ComputedRef, Ref, InjectionKey, UnwrapRef, Slots } from 'vue'; 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; sortPane: (pane: TabsPaneContext) => void; unregisterPane: (uid: number) => void; } export declare const tabsRootContextKey: InjectionKey<TabsRootContext>;