UNPKG

@minto-ai/mt-ui

Version:

UI组件库

143 lines (142 loc) 5.42 kB
export declare const MtImage: { new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{ readonly src: { readonly type: StringConstructor; readonly default: ""; }; readonly width: { readonly type: import('vue').PropType<number | string>; readonly validator: (value: number | string) => boolean; readonly default: "100%"; }; readonly height: { readonly type: import('vue').PropType<number | string>; readonly validator: (value: number | string) => boolean; readonly default: "100%"; }; readonly fit: { readonly type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">; readonly validator: (value: string) => boolean; readonly default: "cover"; }; readonly draggable: { readonly type: BooleanConstructor; readonly default: false; }; readonly lazy: { readonly type: BooleanConstructor; readonly default: false; }; }>> & Readonly<{ onLoad?: (() => any) | undefined; onError?: (() => any) | undefined; }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { load: () => any; error: () => any; }, import('vue').PublicProps, { readonly src: string; readonly width: string | number; readonly height: string | number; readonly fit: "none" | "fill" | "contain" | "cover" | "scale-down"; readonly draggable: boolean; readonly lazy: boolean; }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, { imageRef: HTMLDivElement; }, HTMLDivElement, import('vue').ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly<import('vue').ExtractPropTypes<{ readonly src: { readonly type: StringConstructor; readonly default: ""; }; readonly width: { readonly type: import('vue').PropType<number | string>; readonly validator: (value: number | string) => boolean; readonly default: "100%"; }; readonly height: { readonly type: import('vue').PropType<number | string>; readonly validator: (value: number | string) => boolean; readonly default: "100%"; }; readonly fit: { readonly type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">; readonly validator: (value: string) => boolean; readonly default: "cover"; }; readonly draggable: { readonly type: BooleanConstructor; readonly default: false; }; readonly lazy: { readonly type: BooleanConstructor; readonly default: false; }; }>> & Readonly<{ onLoad?: (() => any) | undefined; onError?: (() => any) | undefined; }>, {}, {}, {}, {}, { readonly src: string; readonly width: string | number; readonly height: string | number; readonly fit: "none" | "fill" | "contain" | "cover" | "scale-down"; readonly draggable: boolean; readonly lazy: boolean; }>; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{ readonly src: { readonly type: StringConstructor; readonly default: ""; }; readonly width: { readonly type: import('vue').PropType<number | string>; readonly validator: (value: number | string) => boolean; readonly default: "100%"; }; readonly height: { readonly type: import('vue').PropType<number | string>; readonly validator: (value: number | string) => boolean; readonly default: "100%"; }; readonly fit: { readonly type: import('vue').PropType<"fill" | "contain" | "cover" | "none" | "scale-down">; readonly validator: (value: string) => boolean; readonly default: "cover"; }; readonly draggable: { readonly type: BooleanConstructor; readonly default: false; }; readonly lazy: { readonly type: BooleanConstructor; readonly default: false; }; }>> & Readonly<{ onLoad?: (() => any) | undefined; onError?: (() => any) | undefined; }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { load: () => any; error: () => any; }, string, { readonly src: string; readonly width: string | number; readonly height: string | number; readonly fit: "none" | "fill" | "contain" | "cover" | "scale-down"; readonly draggable: boolean; readonly lazy: boolean; }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => { $slots: Readonly<{ error: any; }> & { error: any; }; }) & import('vue').Plugin; export default MtImage;