vue-progressive-image
Version:
Vue progressive image loading plugin
44 lines (41 loc) • 1.48 kB
TypeScript
import * as vue0 from "vue";
import { App } from "vue";
//#region src/types.d.ts
type ProgressiveImageProps = {
src: string;
placeholderSrc?: string;
fallbackSrc?: string;
alt?: string;
title?: string;
customClass?: string;
blur?: number | string;
lazyPlaceholder?: boolean;
delay?: number | string;
objectCover?: boolean;
};
type PluginOptions = Partial<Pick<ProgressiveImageProps, "customClass" | "blur" | "delay" | "objectCover" | "lazyPlaceholder" | "fallbackSrc">>; //#endregion
//#region src/ProgressiveImage.vue.d.ts
declare var __VLS_9: {
isLoading: boolean;
};
type __VLS_Slots = {} & {
default?: (props: typeof __VLS_9) => any;
};
declare const __VLS_component: vue0.DefineComponent<ProgressiveImageProps, {}, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {
success: (...args: any[]) => void;
error: (...args: any[]) => void;
}, string, vue0.PublicProps, Readonly<ProgressiveImageProps> & Readonly<{
onSuccess?: ((...args: any[]) => any) | undefined;
onError?: ((...args: any[]) => any) | undefined;
}>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};
//#endregion
//#region src/index.d.ts
declare function install(app: App, options?: PluginOptions): void;
//#endregion
export { _default as ProgressiveImage, install as default, install };