UNPKG

3.17 kBTypeScriptView Raw
1export declare const Image: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2 src: StringConstructor;
3 alt: StringConstructor;
4 fit: import("vue").PropType<import("./types").ImageFit>;
5 position: import("vue").PropType<import("./types").ImagePosition>;
6 round: BooleanConstructor;
7 block: BooleanConstructor;
8 width: (NumberConstructor | StringConstructor)[];
9 height: (NumberConstructor | StringConstructor)[];
10 radius: (NumberConstructor | StringConstructor)[];
11 lazyLoad: BooleanConstructor;
12 iconSize: (NumberConstructor | StringConstructor)[];
13 showError: {
14 type: BooleanConstructor;
15 default: true;
16 };
17 errorIcon: {
18 type: import("vue").PropType<string>;
19 default: string;
20 };
21 iconPrefix: StringConstructor;
22 showLoading: {
23 type: BooleanConstructor;
24 default: true;
25 };
26 loadingIcon: {
27 type: import("vue").PropType<string>;
28 default: string;
29 };
30 crossorigin: import("vue").PropType<import("vue").ImgHTMLAttributes["crossorigin"]>;
31 referrerpolicy: import("vue").PropType<import("vue").ImgHTMLAttributes["referrerpolicy"]>;
32}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "load")[], "error" | "load", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
33 src: StringConstructor;
34 alt: StringConstructor;
35 fit: import("vue").PropType<import("./types").ImageFit>;
36 position: import("vue").PropType<import("./types").ImagePosition>;
37 round: BooleanConstructor;
38 block: BooleanConstructor;
39 width: (NumberConstructor | StringConstructor)[];
40 height: (NumberConstructor | StringConstructor)[];
41 radius: (NumberConstructor | StringConstructor)[];
42 lazyLoad: BooleanConstructor;
43 iconSize: (NumberConstructor | StringConstructor)[];
44 showError: {
45 type: BooleanConstructor;
46 default: true;
47 };
48 errorIcon: {
49 type: import("vue").PropType<string>;
50 default: string;
51 };
52 iconPrefix: StringConstructor;
53 showLoading: {
54 type: BooleanConstructor;
55 default: true;
56 };
57 loadingIcon: {
58 type: import("vue").PropType<string>;
59 default: string;
60 };
61 crossorigin: import("vue").PropType<import("vue").ImgHTMLAttributes["crossorigin"]>;
62 referrerpolicy: import("vue").PropType<import("vue").ImgHTMLAttributes["referrerpolicy"]>;
63}>> & Readonly<{
64 onLoad?: ((...args: any[]) => any) | undefined;
65 onError?: ((...args: any[]) => any) | undefined;
66}>, {
67 round: boolean;
68 block: boolean;
69 showError: boolean;
70 lazyLoad: boolean;
71 errorIcon: string;
72 showLoading: boolean;
73 loadingIcon: string;
74}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
75export default Image;
76export { imageProps } from './Image';
77export type { ImageProps } from './Image';
78export type { ImageFit, ImagePosition, ImageThemeVars } from './types';
79declare module 'vue' {
80 interface GlobalComponents {
81 VanImage: typeof Image;
82 }
83}
84
\No newline at end of file