UNPKG

keep-alive-iframe

Version:

A Vue component for managing iframe lifecycle with keep-alive functionality

59 lines (58 loc) 1.82 kB
import { HTMLElementRect } from './core'; type __VLS_Props = { src: string; keepAlive?: boolean; iframeAttrs?: Record<string, any>; maxCacheSize?: number; parentContainer?: HTMLElement; zIndex?: number; }; declare function __VLS_template(): { attrs: Partial<{}>; slots: { empty?(_: {}): any; loading?(_: { zIndex: number; }): any; error?(_: {}): any; }; refs: { iframeContainerRef: HTMLDivElement; }; rootEl: HTMLDivElement; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, { getFrame: () => HTMLIFrameElement; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { error: (args_0: string | Event) => any; load: (args_0: Event) => any; resize: (args_0: HTMLElementRect) => any; activated: () => any; deactivated: () => any; destroy: () => any; cacheHit: () => any; cacheMiss: () => any; }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{ onError?: (args_0: string | Event) => any; onLoad?: (args_0: Event) => any; onResize?: (args_0: HTMLElementRect) => any; onActivated?: () => any; onDeactivated?: () => any; onDestroy?: () => any; onCacheHit?: () => any; onCacheMiss?: () => any; }>, { zIndex: number; keepAlive: boolean; maxCacheSize: number; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, { iframeContainerRef: HTMLDivElement; }, HTMLDivElement>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };