images-viewer-vue3
Version:
A lightweight image viewer for Vue3
40 lines (39 loc) • 1.95 kB
TypeScript
import { App } from 'vue';
import { default as VImageViewer } from './directive/v-image-viewer';
import { ImageViewerOptions, ImageViewerInstallConfig } from './types/image-viewer';
export default function install(app: App, config?: ImageViewerInstallConfig): void;
declare function imageViewerApi(opt: ImageViewerOptions): Promise<void>;
declare function onClose(): void;
declare function onUpdate(fn?: Function): void;
declare const ImageViewerVue3: {
new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{}>> & {
"onOn-click"?: ((...args: any[]) => any) | undefined;
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"on-click": (...args: any[]) => void;
}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
"onOn-click"?: ((...args: any[]) => any) | undefined;
}, {}, true, {}, {}, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import('vue').ExtractPropTypes<{}>> & {
"onOn-click"?: ((...args: any[]) => any) | undefined;
}, {}, {}, {}, {}, {}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{}>> & {
"onOn-click"?: ((...args: any[]) => any) | undefined;
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"on-click": (...args: any[]) => void;
}, string, {}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
$slots: {
default?(_: {
ref: string;
}): any;
};
});
export { imageViewerApi, VImageViewer, ImageViewerVue3, onClose, onUpdate };