@vrojs/element-plus 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +85 -78
- package/dist/vro-el-image/index.d.ts +207 -0
- package/dist/vro-el-image/index.js +12 -0
- package/dist/vro-el-image/style/css.d.ts +0 -0
- package/dist/vro-el-image/style/css.js +3 -0
- package/dist/vro-el-image/style/deps.d.ts +0 -0
- package/dist/vro-el-image/style/deps.js +1 -0
- package/dist/vro-el-image/style/index.d.ts +0 -0
- package/dist/vro-el-image/style/index.js +4 -0
- package/dist/vro-el-image/types.d.ts +54 -0
- package/dist/vro-el-image/types.js +15 -0
- package/dist/vro-el-image/utils.d.ts +2 -0
- package/dist/vro-el-image/utils.js +6 -0
- package/dist/vro-el-image/vro-el-image.vue.d.ts +122 -0
- package/dist/vro-el-image/vro-el-image.vue.js +32 -0
- package/dist/vro-el-image/vro-el-image.vue2.js +4 -0
- package/dist/vro-el-image-upload/index.d.ts +7 -7
- package/dist/vro-el-image-upload/style/css.js +1 -0
- package/dist/vro-el-image-upload/style/deps.js +1 -1
- package/dist/vro-el-image-upload/style/index.js +2 -1
- package/dist/vro-el-image-upload/types.d.ts +9 -7
- package/dist/vro-el-image-upload/types.js +2 -2
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +10 -9
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +81 -75
- package/dist/vro-el-schema-filter/index.d.ts +1 -3
- package/dist/vro-el-schema-filter/style/css.js +1 -0
- package/dist/vro-el-schema-filter/style/index.js +1 -0
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +2 -6
- package/dist/vro-el-schema-form/index.d.ts +1 -3
- package/dist/vro-el-schema-form/style/css.js +1 -0
- package/dist/vro-el-schema-form/style/index.js +1 -0
- package/dist/vro-el-schema-form/types.d.ts +8 -0
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +2 -6
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +1 -3
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +82 -75
- package/dist/vro-el-schema-form-dialog/index.d.ts +4 -12
- package/dist/vro-el-schema-form-dialog/style/css.js +1 -0
- package/dist/vro-el-schema-form-dialog/style/index.js +1 -0
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +3 -9
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './vro-el-checkbox-group';
|
|
|
4
4
|
export * from './vro-el-config-provider';
|
|
5
5
|
export * from './vro-el-file-upload';
|
|
6
6
|
export * from './vro-el-icon';
|
|
7
|
+
export * from './vro-el-image';
|
|
7
8
|
export * from './vro-el-image-upload';
|
|
8
9
|
export * from './vro-el-radio-group';
|
|
9
10
|
export * from './vro-el-schema-filter';
|
package/dist/index.js
CHANGED
|
@@ -1,88 +1,95 @@
|
|
|
1
1
|
import { default as e } from "./locale/lang/zh-cn.js";
|
|
2
|
-
import { localeContextKey as
|
|
2
|
+
import { localeContextKey as p, useLocale as l } from "./locale/useLocale.js";
|
|
3
3
|
import { datePickerValueFormat as a } from "./utils/datePickerValueFormat.js";
|
|
4
4
|
import { parseType as x } from "@vrojs/base";
|
|
5
5
|
import { VroElCheckboxGroup as i } from "./vro-el-checkbox-group/index.js";
|
|
6
|
-
import { VroElConfigProvider as
|
|
7
|
-
import { VroElFileUpload as
|
|
8
|
-
import { VroElIcon as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
6
|
+
import { VroElConfigProvider as V } from "./vro-el-config-provider/index.js";
|
|
7
|
+
import { VroElFileUpload as c } from "./vro-el-file-upload/index.js";
|
|
8
|
+
import { VroElIcon as F } from "./vro-el-icon/index.js";
|
|
9
|
+
import { VroElImage as d } from "./vro-el-image/index.js";
|
|
10
|
+
import { VroElImageUpload as P } from "./vro-el-image-upload/index.js";
|
|
11
|
+
import { VroElRadioGroup as I } from "./vro-el-radio-group/index.js";
|
|
12
|
+
import { VroElSchemaFilter as C } from "./vro-el-schema-filter/index.js";
|
|
13
|
+
import { VroElSchemaForm as D } from "./vro-el-schema-form/index.js";
|
|
14
|
+
import { VroElSchemaFormDialog as T } from "./vro-el-schema-form-dialog/index.js";
|
|
15
|
+
import { VroElSelect as G } from "./vro-el-select/index.js";
|
|
16
|
+
import { VroElSkeleton as b } from "./vro-el-skeleton/index.js";
|
|
17
|
+
import { VroElTags as R } from "./vro-el-tags/index.js";
|
|
18
|
+
import { VroElTree as j } from "./vro-el-tree/index.js";
|
|
19
|
+
import { VroElWithConfig as z } from "./vro-el-with-config/index.js";
|
|
20
|
+
import { vroElCheckboxGroupProps as M } from "./vro-el-checkbox-group/types.js";
|
|
21
|
+
import { vroElConfigProviderProps as q } from "./vro-el-config-provider/types.js";
|
|
22
|
+
import { vroElFileUploadProps as B } from "./vro-el-file-upload/types.js";
|
|
23
|
+
import { getVroElFileUploadOptions as J, setVroElFileUploadOptions as Q } from "./vro-el-file-upload/utils.js";
|
|
24
|
+
import { vroElIconProps as Y } from "./vro-el-icon/types.js";
|
|
25
|
+
import { vroElImageProps as _ } from "./vro-el-image/types.js";
|
|
26
|
+
import { getVroElImageOptions as oo, setVroElImageOptions as ro } from "./vro-el-image/utils.js";
|
|
27
|
+
import { vroElImageUploadProps as mo } from "./vro-el-image-upload/types.js";
|
|
28
|
+
import { getVroElImageUploadOptions as lo, setVroElImageUploadOptions as to } from "./vro-el-image-upload/utils.js";
|
|
29
|
+
import { vroElRadioGroupProps as fo } from "./vro-el-radio-group/types.js";
|
|
30
|
+
import { vroElSchemaFilterProps as Eo } from "./vro-el-schema-filter/types.js";
|
|
31
|
+
import { defineVroElSchemaFormCreateField as so } from "./vro-el-schema-form/defineVroElSchemaFormCreateField.js";
|
|
32
|
+
import { defineVroElSchemaFormFieldTrigger as go } from "./vro-el-schema-form/defineVroElSchemaFormFieldTrigger.js";
|
|
33
|
+
import { vroElSchemaFormProps as no } from "./vro-el-schema-form/types.js";
|
|
34
|
+
import { useVroElSchemaForm as ho } from "./vro-el-schema-form/useVroElSchemaForm.js";
|
|
35
|
+
import { vroElSchemaFormFieldManager as Po } from "./vro-el-schema-form/vroElSchemaFormFieldManager.js";
|
|
36
|
+
import { showVroElSchemaFormDialog as Io } from "./vro-el-schema-form-dialog/function-call.js";
|
|
37
|
+
import { useVroElSchemaFormDialogInstance as Co, vroElSchemaFormDialogInjectionKey as Uo } from "./vro-el-schema-form-dialog/injection.js";
|
|
38
|
+
import { vroElSchemaFormDialogProps as Oo } from "./vro-el-schema-form-dialog/types.js";
|
|
39
|
+
import { useVroElSchemaFormDialog as ko } from "./vro-el-schema-form-dialog/useVroElSchemaFormDialog.js";
|
|
40
|
+
import { vroElSelectProps as yo } from "./vro-el-select/types.js";
|
|
41
|
+
import { vroElSkeletonProps as Ko } from "./vro-el-skeleton/types.js";
|
|
42
|
+
import { vroElTagsProps as Wo } from "./vro-el-tags/types.js";
|
|
43
|
+
import { vroElTreeProps as wo } from "./vro-el-tree/types.js";
|
|
44
|
+
import { vroElWithConfigProps as Lo } from "./vro-el-with-config/types.js";
|
|
42
45
|
export {
|
|
43
46
|
i as VroElCheckboxGroup,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
d as
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
D as
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
b as
|
|
55
|
-
R as
|
|
56
|
-
j as
|
|
47
|
+
V as VroElConfigProvider,
|
|
48
|
+
c as VroElFileUpload,
|
|
49
|
+
F as VroElIcon,
|
|
50
|
+
d as VroElImage,
|
|
51
|
+
P as VroElImageUpload,
|
|
52
|
+
I as VroElRadioGroup,
|
|
53
|
+
C as VroElSchemaFilter,
|
|
54
|
+
D as VroElSchemaForm,
|
|
55
|
+
T as VroElSchemaFormDialog,
|
|
56
|
+
G as VroElSelect,
|
|
57
|
+
b as VroElSkeleton,
|
|
58
|
+
R as VroElTags,
|
|
59
|
+
j as VroElTree,
|
|
60
|
+
z as VroElWithConfig,
|
|
57
61
|
a as datePickerValueFormat,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
so as defineVroElSchemaFormCreateField,
|
|
63
|
+
go as defineVroElSchemaFormFieldTrigger,
|
|
64
|
+
J as getVroElFileUploadOptions,
|
|
65
|
+
oo as getVroElImageOptions,
|
|
66
|
+
lo as getVroElImageUploadOptions,
|
|
67
|
+
p as localeContextKey,
|
|
63
68
|
x as parseType,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
M as
|
|
73
|
-
q as
|
|
74
|
-
|
|
75
|
-
Y as
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
69
|
+
Q as setVroElFileUploadOptions,
|
|
70
|
+
ro as setVroElImageOptions,
|
|
71
|
+
to as setVroElImageUploadOptions,
|
|
72
|
+
Io as showVroElSchemaFormDialog,
|
|
73
|
+
l as useLocale,
|
|
74
|
+
ho as useVroElSchemaForm,
|
|
75
|
+
ko as useVroElSchemaFormDialog,
|
|
76
|
+
Co as useVroElSchemaFormDialogInstance,
|
|
77
|
+
M as vroElCheckboxGroupProps,
|
|
78
|
+
q as vroElConfigProviderProps,
|
|
79
|
+
B as vroElFileUploadProps,
|
|
80
|
+
Y as vroElIconProps,
|
|
81
|
+
_ as vroElImageProps,
|
|
82
|
+
mo as vroElImageUploadProps,
|
|
83
|
+
fo as vroElRadioGroupProps,
|
|
84
|
+
Eo as vroElSchemaFilterProps,
|
|
85
|
+
Uo as vroElSchemaFormDialogInjectionKey,
|
|
86
|
+
Oo as vroElSchemaFormDialogProps,
|
|
87
|
+
Po as vroElSchemaFormFieldManager,
|
|
88
|
+
no as vroElSchemaFormProps,
|
|
89
|
+
yo as vroElSelectProps,
|
|
90
|
+
Ko as vroElSkeletonProps,
|
|
91
|
+
Wo as vroElTagsProps,
|
|
92
|
+
wo as vroElTreeProps,
|
|
93
|
+
Lo as vroElWithConfigProps,
|
|
87
94
|
e as zhCN
|
|
88
95
|
};
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './utils';
|
|
3
|
+
export declare const VroElImage: import('@vrojs/base').WithInstall<{
|
|
4
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
5
|
+
previewTeleported: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
baseUrl: StringConstructor;
|
|
10
|
+
ratio: (NumberConstructor | StringConstructor)[];
|
|
11
|
+
previewRatio: (NumberConstructor | StringConstructor)[];
|
|
12
|
+
normalizeSrc: import('vue').PropType<import('./types').VroElImageNormalizeSrc>;
|
|
13
|
+
hideOnClickModal: BooleanConstructor;
|
|
14
|
+
src: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
15
|
+
fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "" | "none" | "fill" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
|
|
16
|
+
loading: {
|
|
17
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "lazy" | "eager", unknown>>;
|
|
18
|
+
readonly required: false;
|
|
19
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
|
+
__epPropKey: true;
|
|
21
|
+
};
|
|
22
|
+
lazy: BooleanConstructor;
|
|
23
|
+
scrollContainer: {
|
|
24
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined)) | null)[], unknown, unknown>>;
|
|
25
|
+
readonly required: false;
|
|
26
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
27
|
+
__epPropKey: true;
|
|
28
|
+
};
|
|
29
|
+
previewSrcList: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
30
|
+
zIndex: {
|
|
31
|
+
readonly type: import('vue').PropType<number>;
|
|
32
|
+
readonly required: false;
|
|
33
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
34
|
+
__epPropKey: true;
|
|
35
|
+
};
|
|
36
|
+
initialIndex: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
37
|
+
infinite: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
38
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
39
|
+
zoomRate: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
40
|
+
scale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
41
|
+
minScale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
|
|
42
|
+
maxScale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
43
|
+
showProgress: BooleanConstructor;
|
|
44
|
+
crossorigin: {
|
|
45
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => import('element-plus').ImageCrossorigin) | (((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => import('element-plus').ImageCrossorigin)) | null)[], unknown, unknown>>;
|
|
46
|
+
readonly required: false;
|
|
47
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
48
|
+
__epPropKey: true;
|
|
49
|
+
};
|
|
50
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
51
|
+
previewTeleported: boolean;
|
|
52
|
+
hideOnClickModal: boolean;
|
|
53
|
+
src: string;
|
|
54
|
+
fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown>;
|
|
55
|
+
lazy: boolean;
|
|
56
|
+
previewSrcList: string[];
|
|
57
|
+
initialIndex: number;
|
|
58
|
+
infinite: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
59
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
60
|
+
zoomRate: number;
|
|
61
|
+
scale: number;
|
|
62
|
+
minScale: number;
|
|
63
|
+
maxScale: number;
|
|
64
|
+
showProgress: boolean;
|
|
65
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
66
|
+
P: {};
|
|
67
|
+
B: {};
|
|
68
|
+
D: {};
|
|
69
|
+
C: {};
|
|
70
|
+
M: {};
|
|
71
|
+
Defaults: {};
|
|
72
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
73
|
+
previewTeleported: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
baseUrl: StringConstructor;
|
|
78
|
+
ratio: (NumberConstructor | StringConstructor)[];
|
|
79
|
+
previewRatio: (NumberConstructor | StringConstructor)[];
|
|
80
|
+
normalizeSrc: import('vue').PropType<import('./types').VroElImageNormalizeSrc>;
|
|
81
|
+
hideOnClickModal: BooleanConstructor;
|
|
82
|
+
src: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
83
|
+
fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "" | "none" | "fill" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
|
|
84
|
+
loading: {
|
|
85
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "lazy" | "eager", unknown>>;
|
|
86
|
+
readonly required: false;
|
|
87
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
|
+
__epPropKey: true;
|
|
89
|
+
};
|
|
90
|
+
lazy: BooleanConstructor;
|
|
91
|
+
scrollContainer: {
|
|
92
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined)) | null)[], unknown, unknown>>;
|
|
93
|
+
readonly required: false;
|
|
94
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
|
+
__epPropKey: true;
|
|
96
|
+
};
|
|
97
|
+
previewSrcList: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
98
|
+
zIndex: {
|
|
99
|
+
readonly type: import('vue').PropType<number>;
|
|
100
|
+
readonly required: false;
|
|
101
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
102
|
+
__epPropKey: true;
|
|
103
|
+
};
|
|
104
|
+
initialIndex: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
105
|
+
infinite: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
106
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
107
|
+
zoomRate: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
108
|
+
scale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
109
|
+
minScale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
|
|
110
|
+
maxScale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
111
|
+
showProgress: BooleanConstructor;
|
|
112
|
+
crossorigin: {
|
|
113
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => import('element-plus').ImageCrossorigin) | (((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => import('element-plus').ImageCrossorigin)) | null)[], unknown, unknown>>;
|
|
114
|
+
readonly required: false;
|
|
115
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
116
|
+
__epPropKey: true;
|
|
117
|
+
};
|
|
118
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
119
|
+
previewTeleported: boolean;
|
|
120
|
+
hideOnClickModal: boolean;
|
|
121
|
+
src: string;
|
|
122
|
+
fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown>;
|
|
123
|
+
lazy: boolean;
|
|
124
|
+
previewSrcList: string[];
|
|
125
|
+
initialIndex: number;
|
|
126
|
+
infinite: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
127
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
128
|
+
zoomRate: number;
|
|
129
|
+
scale: number;
|
|
130
|
+
minScale: number;
|
|
131
|
+
maxScale: number;
|
|
132
|
+
showProgress: boolean;
|
|
133
|
+
}>;
|
|
134
|
+
__isFragment?: never;
|
|
135
|
+
__isTeleport?: never;
|
|
136
|
+
__isSuspense?: never;
|
|
137
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
138
|
+
previewTeleported: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
142
|
+
baseUrl: StringConstructor;
|
|
143
|
+
ratio: (NumberConstructor | StringConstructor)[];
|
|
144
|
+
previewRatio: (NumberConstructor | StringConstructor)[];
|
|
145
|
+
normalizeSrc: import('vue').PropType<import('./types').VroElImageNormalizeSrc>;
|
|
146
|
+
hideOnClickModal: BooleanConstructor;
|
|
147
|
+
src: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
148
|
+
fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "" | "none" | "fill" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
|
|
149
|
+
loading: {
|
|
150
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "lazy" | "eager", unknown>>;
|
|
151
|
+
readonly required: false;
|
|
152
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
153
|
+
__epPropKey: true;
|
|
154
|
+
};
|
|
155
|
+
lazy: BooleanConstructor;
|
|
156
|
+
scrollContainer: {
|
|
157
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined)) | null)[], unknown, unknown>>;
|
|
158
|
+
readonly required: false;
|
|
159
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
160
|
+
__epPropKey: true;
|
|
161
|
+
};
|
|
162
|
+
previewSrcList: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
163
|
+
zIndex: {
|
|
164
|
+
readonly type: import('vue').PropType<number>;
|
|
165
|
+
readonly required: false;
|
|
166
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
167
|
+
__epPropKey: true;
|
|
168
|
+
};
|
|
169
|
+
initialIndex: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
170
|
+
infinite: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
171
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
172
|
+
zoomRate: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
173
|
+
scale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
174
|
+
minScale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
|
|
175
|
+
maxScale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
176
|
+
showProgress: BooleanConstructor;
|
|
177
|
+
crossorigin: {
|
|
178
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => import('element-plus').ImageCrossorigin) | (((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => import('element-plus').ImageCrossorigin)) | null)[], unknown, unknown>>;
|
|
179
|
+
readonly required: false;
|
|
180
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
181
|
+
__epPropKey: true;
|
|
182
|
+
};
|
|
183
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
184
|
+
previewTeleported: boolean;
|
|
185
|
+
hideOnClickModal: boolean;
|
|
186
|
+
src: string;
|
|
187
|
+
fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown>;
|
|
188
|
+
lazy: boolean;
|
|
189
|
+
previewSrcList: string[];
|
|
190
|
+
initialIndex: number;
|
|
191
|
+
infinite: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
192
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
193
|
+
zoomRate: number;
|
|
194
|
+
scale: number;
|
|
195
|
+
minScale: number;
|
|
196
|
+
maxScale: number;
|
|
197
|
+
showProgress: boolean;
|
|
198
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
199
|
+
$slots: Partial<Record<string, (_: any) => any>>;
|
|
200
|
+
})>;
|
|
201
|
+
export default VroElImage;
|
|
202
|
+
export type VroElImageInstance = InstanceType<typeof VroElImage>;
|
|
203
|
+
declare module 'vue' {
|
|
204
|
+
interface GlobalComponents {
|
|
205
|
+
VroElImage: typeof VroElImage;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { withInstall as o } from "@vrojs/base";
|
|
2
|
+
import r from "./vro-el-image.vue.js";
|
|
3
|
+
import { vroElImageProps as s } from "./types.js";
|
|
4
|
+
import { getVroElImageOptions as f, setVroElImageOptions as i } from "./utils.js";
|
|
5
|
+
const e = o(r);
|
|
6
|
+
export {
|
|
7
|
+
e as VroElImage,
|
|
8
|
+
e as default,
|
|
9
|
+
f as getVroElImageOptions,
|
|
10
|
+
i as setVroElImageOptions,
|
|
11
|
+
s as vroElImageProps
|
|
12
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "element-plus/es/components/image/style/css";
|
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export type VroElImageNormalizeSrc = (options: {
|
|
3
|
+
src: string;
|
|
4
|
+
ratio?: string | number;
|
|
5
|
+
baseUrl?: string;
|
|
6
|
+
}) => string;
|
|
7
|
+
export declare const vroElImageProps: {
|
|
8
|
+
previewTeleported: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
baseUrl: StringConstructor;
|
|
13
|
+
ratio: (NumberConstructor | StringConstructor)[];
|
|
14
|
+
previewRatio: (NumberConstructor | StringConstructor)[];
|
|
15
|
+
normalizeSrc: PropType<VroElImageNormalizeSrc>;
|
|
16
|
+
hideOnClickModal: BooleanConstructor;
|
|
17
|
+
src: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
18
|
+
fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "" | "none" | "fill" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
|
|
19
|
+
loading: {
|
|
20
|
+
readonly type: PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "lazy" | "eager", unknown>>;
|
|
21
|
+
readonly required: false;
|
|
22
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
23
|
+
__epPropKey: true;
|
|
24
|
+
};
|
|
25
|
+
lazy: BooleanConstructor;
|
|
26
|
+
scrollContainer: {
|
|
27
|
+
readonly type: PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined)) | null)[], unknown, unknown>>;
|
|
28
|
+
readonly required: false;
|
|
29
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
30
|
+
__epPropKey: true;
|
|
31
|
+
};
|
|
32
|
+
previewSrcList: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
33
|
+
zIndex: {
|
|
34
|
+
readonly type: PropType<number>;
|
|
35
|
+
readonly required: false;
|
|
36
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
37
|
+
__epPropKey: true;
|
|
38
|
+
};
|
|
39
|
+
initialIndex: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
40
|
+
infinite: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
41
|
+
closeOnPressEscape: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
42
|
+
zoomRate: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 1.2, boolean>;
|
|
43
|
+
scale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
44
|
+
minScale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0.2, boolean>;
|
|
45
|
+
maxScale: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
46
|
+
showProgress: BooleanConstructor;
|
|
47
|
+
crossorigin: {
|
|
48
|
+
readonly type: PropType<import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => import('element-plus').ImageCrossorigin) | (((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => import('element-plus').ImageCrossorigin)) | null)[], unknown, unknown>>;
|
|
49
|
+
readonly required: false;
|
|
50
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
51
|
+
__epPropKey: true;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export type VroElImageProps = ExtractPropTypes<typeof vroElImageProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { imageProps as r } from "element-plus";
|
|
2
|
+
const o = {
|
|
3
|
+
...r,
|
|
4
|
+
previewTeleported: {
|
|
5
|
+
type: Boolean,
|
|
6
|
+
default: !0
|
|
7
|
+
},
|
|
8
|
+
baseUrl: String,
|
|
9
|
+
ratio: [String, Number],
|
|
10
|
+
previewRatio: [String, Number],
|
|
11
|
+
normalizeSrc: Function
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
o as vroElImageProps
|
|
15
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { VroElImageProps } from './types';
|
|
2
|
+
export declare const setVroElImageOptions: (value: Partial<Pick<VroElImageProps, "baseUrl" | "normalizeSrc">>) => Partial<Pick<VroElImageProps, "baseUrl" | "normalizeSrc">>, getVroElImageOptions: () => Partial<Pick<VroElImageProps, "baseUrl" | "normalizeSrc">>;
|