import { NavigationFailure } from 'vue-router'; import { MenuItemClicked, ScrollbarProps } from 'element-plus'; import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils'; import { PlusSidebarSelfProps as PlusSidebarProps } from './type'; import { PlusRouteRecordRaw, RenderTypes, Mutable, RecordType } from 'plus-pro-components/es/types'; import { ComputedRef, DefineComponent, Ref, CreateComponentPublicInstance, ExtractPropTypes, Component, ComputedOptions, MethodOptions, VNode, RendererNode, RendererElement, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, CSSProperties, PropType } from 'vue'; declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { routes: () => never[]; scrollbarProps: () => {}; collapse: boolean; renderMenuItem: undefined; renderSubMenuItem: undefined; renderTitle: undefined; renderMenuExtra: undefined; /** * 菜单的宽度 * @deprecated 0.1.20 */ width: number; defaultActive: undefined; }>, { collapse: Ref; toggleCollapse: () => void; plusSidebarInstance: Ref< CreateComponentPublicInstance; readonly defaultActive: EpPropFinalized; readonly defaultOpeneds: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>; readonly uniqueOpened: BooleanConstructor; readonly router: BooleanConstructor; readonly menuTrigger: EpPropFinalized; readonly collapse: BooleanConstructor; readonly backgroundColor: StringConstructor; readonly textColor: StringConstructor; readonly activeTextColor: StringConstructor; readonly closeOnClickOutside: BooleanConstructor; readonly collapseTransition: EpPropFinalized; readonly ellipsis: EpPropFinalized; readonly popperOffset: EpPropFinalized; readonly ellipsisIcon: EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, () => any, boolean>; readonly popperEffect: EpPropFinalized; readonly popperClass: StringConstructor; readonly showTimeout: EpPropFinalized; readonly hideTimeout: EpPropFinalized; }>> & { onClose?: ((index: string, indexPath: string[]) => any) | undefined; onSelect?: ((index: string, indexPath: string[], item: MenuItemClicked, routerResult?: Promise | undefined) => any) | undefined; onOpen?: ((index: string, indexPath: string[]) => any) | undefined; }, () => VNode, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { close: (index: string, indexPath: string[]) => boolean; open: (index: string, indexPath: string[]) => boolean; select: (index: string, indexPath: string[], item: MenuItemClicked, routerResult?: Promise | undefined) => boolean; }, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{ readonly mode: EpPropFinalized; readonly defaultActive: EpPropFinalized; readonly defaultOpeneds: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>; readonly uniqueOpened: BooleanConstructor; readonly router: BooleanConstructor; readonly menuTrigger: EpPropFinalized; readonly collapse: BooleanConstructor; readonly backgroundColor: StringConstructor; readonly textColor: StringConstructor; readonly activeTextColor: StringConstructor; readonly closeOnClickOutside: BooleanConstructor; readonly collapseTransition: EpPropFinalized; readonly ellipsis: EpPropFinalized; readonly popperOffset: EpPropFinalized; readonly ellipsisIcon: EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, () => any, boolean>; readonly popperEffect: EpPropFinalized; readonly popperClass: StringConstructor; readonly showTimeout: EpPropFinalized; readonly hideTimeout: EpPropFinalized; }>> & { onClose?: ((index: string, indexPath: string[]) => any) | undefined; onSelect?: ((index: string, indexPath: string[], item: MenuItemClicked, routerResult?: Promise | undefined) => any) | undefined; onOpen?: ((index: string, indexPath: string[]) => any) | undefined; }, { readonly ellipsis: EpPropMergeType; readonly collapse: boolean; readonly mode: EpPropMergeType; readonly showTimeout: number; readonly hideTimeout: number; readonly defaultActive: string; readonly defaultOpeneds: string[]; readonly menuTrigger: EpPropMergeType; readonly collapseTransition: EpPropMergeType; readonly popperOffset: number; readonly ellipsisIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>; readonly popperEffect: EpPropMergeType; readonly uniqueOpened: boolean; readonly router: boolean; readonly closeOnClickOutside: boolean; }, true, {}, {}, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly< ExtractPropTypes<{ readonly mode: EpPropFinalized; readonly defaultActive: EpPropFinalized; readonly defaultOpeneds: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>; readonly uniqueOpened: BooleanConstructor; readonly router: BooleanConstructor; readonly menuTrigger: EpPropFinalized; readonly collapse: BooleanConstructor; readonly backgroundColor: StringConstructor; readonly textColor: StringConstructor; readonly activeTextColor: StringConstructor; readonly closeOnClickOutside: BooleanConstructor; readonly collapseTransition: EpPropFinalized; readonly ellipsis: EpPropFinalized; readonly popperOffset: EpPropFinalized; readonly ellipsisIcon: EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, () => any, boolean>; readonly popperEffect: EpPropFinalized; readonly popperClass: StringConstructor; readonly showTimeout: EpPropFinalized; readonly hideTimeout: EpPropFinalized; }>> & { onClose?: ((index: string, indexPath: string[]) => any) | undefined; onSelect?: ((index: string, indexPath: string[], item: MenuItemClicked, routerResult?: Promise | undefined) => any) | undefined; onOpen?: ((index: string, indexPath: string[]) => any) | undefined; }, () => VNode, {}, {}, {}, { readonly ellipsis: EpPropMergeType; readonly collapse: boolean; readonly mode: EpPropMergeType; readonly showTimeout: number; readonly hideTimeout: number; readonly defaultActive: string; readonly defaultOpeneds: string[]; readonly menuTrigger: EpPropMergeType; readonly collapseTransition: EpPropMergeType; readonly popperOffset: number; readonly ellipsisIcon: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>; readonly popperEffect: EpPropMergeType; readonly uniqueOpened: boolean; readonly router: boolean; readonly closeOnClickOutside: boolean; }> | null>; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:collapse": (collapse: boolean) => void; toggleCollapse: (collapse: boolean) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { routes: () => never[]; scrollbarProps: () => {}; collapse: boolean; renderMenuItem: undefined; renderSubMenuItem: undefined; renderTitle: undefined; renderMenuExtra: undefined; /** * 菜单的宽度 * @deprecated 0.1.20 */ width: number; defaultActive: undefined; }>>> & { "onUpdate:collapse"?: ((collapse: boolean) => any) | undefined; onToggleCollapse?: ((collapse: boolean) => any) | undefined; }, { width: string | number; collapse: boolean; routes: PlusRouteRecordRaw[]; renderTitle: (route: PlusRouteRecordRaw) => RenderTypes; renderMenuItem: (route: PlusRouteRecordRaw) => RenderTypes; renderSubMenuItem: (route: PlusRouteRecordRaw) => RenderTypes; defaultActive: string | ComputedRef | Ref; renderMenuExtra: (route: PlusRouteRecordRaw) => RenderTypes; scrollbarProps: Partial< Mutable & { style?: CSSProperties | undefined; class?: any; } & RecordType>; }, {}>, { "sidebar-extra"?(_: {}): any; "sidebar-item"?(_: any): any; "sidebar-sub"?(_: any): any; "sidebar-item-title"?(_: any): any; }>; export default _default; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps = { [K in keyof T]-?: {} extends Pick ? { type: PropType<__VLS_NonUndefinedable>; } : { type: PropType; required: true; }; }; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_Prettify : P[K]; }; type __VLS_Prettify = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };