images-viewer-vue3
Version:
A lightweight image viewer for Vue3
29 lines (28 loc) • 913 B
TypeScript
import { AsyncSetImageReturnType } from '../types/image-viewer';
export declare const createElementNode: () => HTMLDivElement;
export declare const setBodyStyle: (previewBox: HTMLElement) => void;
/**
* Verify illegal image paths, such as null, undefined, ''
*
* @returns AsyncSetImageReturnType
*/
export declare const asyncVerifyIllegalImage: (images: string[]) => AsyncSetImageReturnType;
/**
* debounce
*
* @param { Function } fun
* @param { Number } delay
* @author qiuny
* @returns
*/
export declare const debounce: (fun: Function, delay: number) => (this: any) => void;
export declare const getTimeStamp: () => string;
/**
* downloadExe
*
* @param { String } url image url
* @param { String } fileName
*/
export declare const downloadExe: (url: string, fileName?: string) => void;
export declare const getUserAgent: () => boolean;
export declare const isTrueArray: (value: any) => boolean;