vue-lazyload-imgs
Version:
This Vue component vue-lazyload-imgs is used to implement lazy loading of images in Vue2 (Vue>=2.6.0) and Vue3 framework environments. The difference from some lazy loading image instructions is that this component can lazily load any number of images at
63 lines (62 loc) • 1.88 kB
TypeScript
import { PropType } from 'vue-demi';
import { ILazyOptions } from '../scripts/types';
declare const _default: import('vue/types/v3-define-component').DefineComponent<{
[x: string]: {
type: PropType<string | object[]>;
required: false;
default?: undefined;
} | {
type: PropType<ILazyOptions>;
required: false;
default: () => any;
} | {
type: PropType<IntersectionObserverInit>;
required: false;
default: () => any;
};
lazyOptions: {
type: PropType<ILazyOptions>;
required: false;
default: () => any;
};
observerOptions: {
type: PropType<IntersectionObserverInit>;
required: false;
default: () => any;
};
htmlFieldName: {
type: PropType<string>;
required: false;
};
}, {
instId: number;
}, import('vue-demi').Data, {}, {}, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, "update:modelValue"[], string, Readonly<import('vue-demi').ExtractPropTypes<{
[x: string]: {
type: PropType<string | object[]>;
required: false;
default?: undefined;
} | {
type: PropType<ILazyOptions>;
required: false;
default: () => any;
} | {
type: PropType<IntersectionObserverInit>;
required: false;
default: () => any;
};
lazyOptions: {
type: PropType<ILazyOptions>;
required: false;
default: () => any;
};
observerOptions: {
type: PropType<IntersectionObserverInit>;
required: false;
default: () => any;
};
htmlFieldName: {
type: PropType<string>;
required: false;
};
}>>, {}>;
export default _default;