UNPKG

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