UNPKG

element-plus

Version:

A Component Library for Vue 3

257 lines (256 loc) 11.4 kB
import type { ExtractPropTypes } from 'vue'; import type { TabsPaneContext } from './constants'; import type { TabPaneName } from './tabs'; export declare const tabNavProps: { readonly panes: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]) | (() => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]) | ((new (...args: any[]) => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]) | (() => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]))[], unknown, unknown, () => [], boolean>; readonly currentName: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>; readonly editable: BooleanConstructor; readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "", boolean>; readonly stretch: BooleanConstructor; }; export declare const tabNavEmits: { tabClick: (tab: TabsPaneContext, tabName: TabPaneName, ev: Event) => boolean; tabRemove: (tab: TabsPaneContext, ev: Event) => boolean; }; export type TabNavProps = ExtractPropTypes<typeof tabNavProps>; export type TabNavEmits = typeof tabNavEmits; declare const TabNav: import("vue").DefineComponent<{ readonly panes: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]) | (() => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]) | ((new (...args: any[]) => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]) | (() => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]))[], unknown, unknown, () => [], boolean>; readonly currentName: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>; readonly editable: BooleanConstructor; readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "", boolean>; readonly stretch: BooleanConstructor; }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { tabClick: (tab: TabsPaneContext, tabName: TabPaneName, ev: Event) => boolean; tabRemove: (tab: TabsPaneContext, ev: Event) => boolean; }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{ readonly panes: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]) | (() => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]) | ((new (...args: any[]) => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]) | (() => { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]))[], unknown, unknown, () => [], boolean>; readonly currentName: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>; readonly editable: BooleanConstructor; readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "", boolean>; readonly stretch: BooleanConstructor; }>> & { onTabClick?: ((tab: { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }, tabName: TabPaneName, ev: Event) => any) | undefined; onTabRemove?: ((tab: { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }, ev: Event) => any) | undefined; }, { readonly stretch: boolean; readonly type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>; readonly editable: boolean; readonly panes: { uid: number; slots: import("vue").Slots; props: { readonly label: string; readonly disabled: boolean; readonly closable: boolean; readonly lazy: boolean; readonly name?: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined; }; paneName: string | number | undefined; active: boolean; index: string | undefined; isClosable: boolean; }[]; readonly currentName: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>; }>; export type TabNavInstance = InstanceType<typeof TabNav> & { scrollToActiveTab: () => Promise<void>; removeFocus: () => void; }; export default TabNav;