@gx-design-vue/image 0.2.0-alpha.0 → 0.2.0-alpha.1
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/GImage.d.ts
CHANGED
|
@@ -1,146 +1,146 @@
|
|
|
1
1
|
import { BaseImagePreviewProps } from "./ImagePreview/props.js";
|
|
2
2
|
import { imageProps } from "./props.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue46 from "vue";
|
|
4
4
|
import { CSSProperties, ExtractPropTypes, SlotsType } from "vue";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
5
|
+
import * as _gx_design_vue_pro_utils7 from "@gx-design-vue/pro-utils";
|
|
6
|
+
import * as ant_design_vue_es__util_type2 from "ant-design-vue/es/_util/type";
|
|
7
7
|
|
|
8
8
|
//#region src/GImage.d.ts
|
|
9
9
|
type GImageProps = Partial<ExtractPropTypes<typeof imageProps>>;
|
|
10
|
-
declare const GImage:
|
|
10
|
+
declare const GImage: vue46.DefineComponent<ExtractPropTypes<{
|
|
11
11
|
preview: {
|
|
12
|
-
type:
|
|
12
|
+
type: vue46.PropType<BaseImagePreviewProps | boolean>;
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
15
|
src: {
|
|
16
|
-
type:
|
|
16
|
+
type: vue46.PropType<string>;
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
19
|
alt: {
|
|
20
|
-
type:
|
|
20
|
+
type: vue46.PropType<string>;
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
23
|
loading: {
|
|
24
|
-
type:
|
|
24
|
+
type: vue46.PropType<"eager" | "lazy">;
|
|
25
25
|
};
|
|
26
26
|
fit: {
|
|
27
|
-
type:
|
|
27
|
+
type: vue46.PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
28
28
|
default: string;
|
|
29
29
|
};
|
|
30
30
|
crossOrigin: {
|
|
31
|
-
type:
|
|
31
|
+
type: vue46.PropType<"anonymous" | "use-credentials" | "">;
|
|
32
32
|
};
|
|
33
|
-
lazy:
|
|
33
|
+
lazy: vue46.PropType<boolean>;
|
|
34
34
|
scrollContainer: {
|
|
35
|
-
type:
|
|
35
|
+
type: vue46.PropType<string | HTMLElement | undefined>;
|
|
36
36
|
};
|
|
37
37
|
placeholder: {
|
|
38
|
-
type:
|
|
38
|
+
type: vue46.PropType<_gx_design_vue_pro_utils7.WithFalse<_gx_design_vue_pro_utils7.CustomRender>>;
|
|
39
39
|
default: () => any;
|
|
40
40
|
};
|
|
41
41
|
fallback: {
|
|
42
|
-
type:
|
|
42
|
+
type: vue46.PropType<_gx_design_vue_pro_utils7.WithFalse<_gx_design_vue_pro_utils7.CustomRender>>;
|
|
43
43
|
default: () => any;
|
|
44
44
|
};
|
|
45
45
|
onLoad: {
|
|
46
|
-
type:
|
|
46
|
+
type: vue46.PropType<(e: Error) => void>;
|
|
47
47
|
};
|
|
48
48
|
onError: {
|
|
49
|
-
type:
|
|
49
|
+
type: vue46.PropType<(e: Error) => void>;
|
|
50
50
|
};
|
|
51
51
|
onClick: {
|
|
52
|
-
type:
|
|
52
|
+
type: vue46.PropType<(info: any) => void>;
|
|
53
53
|
};
|
|
54
54
|
imageStyle: {
|
|
55
|
-
type:
|
|
55
|
+
type: vue46.PropType<CSSProperties>;
|
|
56
56
|
default: () => {};
|
|
57
57
|
};
|
|
58
|
-
imageClass:
|
|
59
|
-
size:
|
|
60
|
-
width:
|
|
61
|
-
height:
|
|
58
|
+
imageClass: vue46.PropType<string>;
|
|
59
|
+
size: vue46.PropType<number>;
|
|
60
|
+
width: vue46.PropType<number>;
|
|
61
|
+
height: vue46.PropType<number>;
|
|
62
62
|
zIndex: {
|
|
63
|
-
type:
|
|
63
|
+
type: vue46.PropType<number>;
|
|
64
64
|
default: number;
|
|
65
65
|
};
|
|
66
66
|
getContainer: {
|
|
67
|
-
type:
|
|
67
|
+
type: vue46.PropType<string>;
|
|
68
68
|
};
|
|
69
|
-
}>, () =>
|
|
69
|
+
}>, () => ant_design_vue_es__util_type2.VueNode, {}, {}, {}, vue46.ComponentOptionsMixin, vue46.ComponentOptionsMixin, {
|
|
70
70
|
click: (_type: "loaded" | "error" | "success") => true;
|
|
71
71
|
load: (_event: Event) => true;
|
|
72
72
|
error: (_event: Event) => true;
|
|
73
|
-
}, string,
|
|
73
|
+
}, string, vue46.PublicProps, Readonly<ExtractPropTypes<{
|
|
74
74
|
preview: {
|
|
75
|
-
type:
|
|
75
|
+
type: vue46.PropType<BaseImagePreviewProps | boolean>;
|
|
76
76
|
default: boolean;
|
|
77
77
|
};
|
|
78
78
|
src: {
|
|
79
|
-
type:
|
|
79
|
+
type: vue46.PropType<string>;
|
|
80
80
|
default: string;
|
|
81
81
|
};
|
|
82
82
|
alt: {
|
|
83
|
-
type:
|
|
83
|
+
type: vue46.PropType<string>;
|
|
84
84
|
default: string;
|
|
85
85
|
};
|
|
86
86
|
loading: {
|
|
87
|
-
type:
|
|
87
|
+
type: vue46.PropType<"eager" | "lazy">;
|
|
88
88
|
};
|
|
89
89
|
fit: {
|
|
90
|
-
type:
|
|
90
|
+
type: vue46.PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
|
|
91
91
|
default: string;
|
|
92
92
|
};
|
|
93
93
|
crossOrigin: {
|
|
94
|
-
type:
|
|
94
|
+
type: vue46.PropType<"anonymous" | "use-credentials" | "">;
|
|
95
95
|
};
|
|
96
|
-
lazy:
|
|
96
|
+
lazy: vue46.PropType<boolean>;
|
|
97
97
|
scrollContainer: {
|
|
98
|
-
type:
|
|
98
|
+
type: vue46.PropType<string | HTMLElement | undefined>;
|
|
99
99
|
};
|
|
100
100
|
placeholder: {
|
|
101
|
-
type:
|
|
101
|
+
type: vue46.PropType<_gx_design_vue_pro_utils7.WithFalse<_gx_design_vue_pro_utils7.CustomRender>>;
|
|
102
102
|
default: () => any;
|
|
103
103
|
};
|
|
104
104
|
fallback: {
|
|
105
|
-
type:
|
|
105
|
+
type: vue46.PropType<_gx_design_vue_pro_utils7.WithFalse<_gx_design_vue_pro_utils7.CustomRender>>;
|
|
106
106
|
default: () => any;
|
|
107
107
|
};
|
|
108
108
|
onLoad: {
|
|
109
|
-
type:
|
|
109
|
+
type: vue46.PropType<(e: Error) => void>;
|
|
110
110
|
};
|
|
111
111
|
onError: {
|
|
112
|
-
type:
|
|
112
|
+
type: vue46.PropType<(e: Error) => void>;
|
|
113
113
|
};
|
|
114
114
|
onClick: {
|
|
115
|
-
type:
|
|
115
|
+
type: vue46.PropType<(info: any) => void>;
|
|
116
116
|
};
|
|
117
117
|
imageStyle: {
|
|
118
|
-
type:
|
|
118
|
+
type: vue46.PropType<CSSProperties>;
|
|
119
119
|
default: () => {};
|
|
120
120
|
};
|
|
121
|
-
imageClass:
|
|
122
|
-
size:
|
|
123
|
-
width:
|
|
124
|
-
height:
|
|
121
|
+
imageClass: vue46.PropType<string>;
|
|
122
|
+
size: vue46.PropType<number>;
|
|
123
|
+
width: vue46.PropType<number>;
|
|
124
|
+
height: vue46.PropType<number>;
|
|
125
125
|
zIndex: {
|
|
126
|
-
type:
|
|
126
|
+
type: vue46.PropType<number>;
|
|
127
127
|
default: number;
|
|
128
128
|
};
|
|
129
129
|
getContainer: {
|
|
130
|
-
type:
|
|
130
|
+
type: vue46.PropType<string>;
|
|
131
131
|
};
|
|
132
132
|
}>> & Readonly<{
|
|
133
133
|
onError?: (_event: Event) => any;
|
|
134
134
|
onClick?: (_type: "loaded" | "error" | "success") => any;
|
|
135
135
|
onLoad?: (_event: Event) => any;
|
|
136
136
|
}>, {
|
|
137
|
-
fallback: _gx_design_vue_pro_utils0.CustomRender;
|
|
138
|
-
placeholder: _gx_design_vue_pro_utils0.CustomRender;
|
|
139
137
|
zIndex: number;
|
|
138
|
+
placeholder: _gx_design_vue_pro_utils7.CustomRender;
|
|
139
|
+
fallback: _gx_design_vue_pro_utils7.CustomRender;
|
|
140
140
|
preview: boolean;
|
|
141
141
|
src: string;
|
|
142
142
|
alt: string;
|
|
143
|
-
fit: "fill" | "contain" | "
|
|
143
|
+
fit: "fill" | "contain" | "none" | "cover" | "scale-down";
|
|
144
144
|
imageStyle: CSSProperties;
|
|
145
145
|
}, SlotsType<{
|
|
146
146
|
default: () => void;
|
|
@@ -157,6 +157,6 @@ declare const GImage: vue0.DefineComponent<ExtractPropTypes<{
|
|
|
157
157
|
rotateLeft: () => void;
|
|
158
158
|
fallback: () => void;
|
|
159
159
|
placeholder: () => void;
|
|
160
|
-
}>, {}, {}, string,
|
|
160
|
+
}>, {}, {}, string, vue46.ComponentProvideOptions, true, {}, any>;
|
|
161
161
|
//#endregion
|
|
162
162
|
export { GImageProps, GImage as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PreviewPropsIcons } from "./props.js";
|
|
2
2
|
import { ImagePreviewTools } from "./typings.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue0 from "vue";
|
|
4
4
|
import { PropType } from "vue";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _gx_design_vue_pro_utils0 from "@gx-design-vue/pro-utils";
|
|
6
6
|
import * as vue_jsx_runtime0 from "vue/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/ImagePreview/Operations.d.ts
|
|
9
|
-
declare const _default:
|
|
9
|
+
declare const _default: vue0.DefineComponent<vue0.ExtractPropTypes<{
|
|
10
10
|
open: PropType<boolean>;
|
|
11
11
|
count: {
|
|
12
12
|
type: PropType<number>;
|
|
@@ -35,11 +35,11 @@ declare const _default: vue84.DefineComponent<vue84.ExtractPropTypes<{
|
|
|
35
35
|
getContainer: {
|
|
36
36
|
type: PropType<string>;
|
|
37
37
|
};
|
|
38
|
-
countRender: PropType<
|
|
38
|
+
countRender: PropType<_gx_design_vue_pro_utils0.WithFalse<(current: number, total: number) => _gx_design_vue_pro_utils0.CustomRender>>;
|
|
39
39
|
tools: PropType<ImagePreviewTools[]>;
|
|
40
40
|
onClose: PropType<() => void>;
|
|
41
41
|
onActive: PropType<(offset: number) => void>;
|
|
42
|
-
}>, () => vue_jsx_runtime0.JSX.Element, {}, {}, {},
|
|
42
|
+
}>, () => vue_jsx_runtime0.JSX.Element, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<vue0.ExtractPropTypes<{
|
|
43
43
|
open: PropType<boolean>;
|
|
44
44
|
count: {
|
|
45
45
|
type: PropType<number>;
|
|
@@ -68,16 +68,16 @@ declare const _default: vue84.DefineComponent<vue84.ExtractPropTypes<{
|
|
|
68
68
|
getContainer: {
|
|
69
69
|
type: PropType<string>;
|
|
70
70
|
};
|
|
71
|
-
countRender: PropType<
|
|
71
|
+
countRender: PropType<_gx_design_vue_pro_utils0.WithFalse<(current: number, total: number) => _gx_design_vue_pro_utils0.CustomRender>>;
|
|
72
72
|
tools: PropType<ImagePreviewTools[]>;
|
|
73
73
|
onClose: PropType<() => void>;
|
|
74
74
|
onActive: PropType<(offset: number) => void>;
|
|
75
75
|
}>> & Readonly<{}>, {
|
|
76
76
|
zIndex: number;
|
|
77
|
-
current: number;
|
|
78
|
-
infinite: boolean;
|
|
79
77
|
icons: PreviewPropsIcons;
|
|
78
|
+
infinite: boolean;
|
|
80
79
|
count: number;
|
|
81
|
-
|
|
80
|
+
current: number;
|
|
81
|
+
}, {}, {}, {}, string, vue0.ComponentProvideOptions, true, {}, any>;
|
|
82
82
|
//#endregion
|
|
83
83
|
export { _default as default };
|
|
@@ -1,131 +1,131 @@
|
|
|
1
1
|
import { TransformAction, TransformType } from "./hooks/useImageTransform.js";
|
|
2
2
|
import _default, { PreviewPropsIcons } from "./props.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue6 from "vue";
|
|
4
4
|
import { ExtractPropTypes, SlotsType } from "vue";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
5
|
+
import * as _gx_design_vue_pro_utils3 from "@gx-design-vue/pro-utils";
|
|
6
|
+
import * as ant_design_vue_es__util_type0 from "ant-design-vue/es/_util/type";
|
|
7
7
|
|
|
8
8
|
//#region src/ImagePreview/index.d.ts
|
|
9
9
|
type ImagePreviewProps = Partial<ExtractPropTypes<typeof _default>>;
|
|
10
|
-
declare const GImagePreview:
|
|
10
|
+
declare const GImagePreview: vue6.DefineComponent<ExtractPropTypes<{
|
|
11
11
|
urls: {
|
|
12
|
-
type:
|
|
12
|
+
type: vue6.PropType<string[]>;
|
|
13
13
|
default: () => any[];
|
|
14
14
|
};
|
|
15
15
|
open: {
|
|
16
|
-
type:
|
|
16
|
+
type: vue6.PropType<boolean>;
|
|
17
17
|
default: boolean;
|
|
18
18
|
};
|
|
19
19
|
scaleStep: {
|
|
20
|
-
type:
|
|
20
|
+
type: vue6.PropType<number>;
|
|
21
21
|
default: number;
|
|
22
22
|
};
|
|
23
23
|
minScale: {
|
|
24
|
-
type:
|
|
24
|
+
type: vue6.PropType<number>;
|
|
25
25
|
default: number;
|
|
26
26
|
};
|
|
27
27
|
maxScale: {
|
|
28
|
-
type:
|
|
28
|
+
type: vue6.PropType<number>;
|
|
29
29
|
default: number;
|
|
30
30
|
};
|
|
31
31
|
movable: {
|
|
32
|
-
type:
|
|
32
|
+
type: vue6.PropType<boolean>;
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
|
-
disabled:
|
|
35
|
+
disabled: vue6.PropType<boolean>;
|
|
36
36
|
zIndex: {
|
|
37
|
-
type:
|
|
37
|
+
type: vue6.PropType<number>;
|
|
38
38
|
default: number;
|
|
39
39
|
};
|
|
40
40
|
current: {
|
|
41
|
-
type:
|
|
41
|
+
type: vue6.PropType<number>;
|
|
42
42
|
default: number;
|
|
43
43
|
};
|
|
44
44
|
infinite: {
|
|
45
|
-
type:
|
|
45
|
+
type: vue6.PropType<boolean>;
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
48
|
getContainer: {
|
|
49
|
-
type:
|
|
49
|
+
type: vue6.PropType<string>;
|
|
50
50
|
};
|
|
51
51
|
onHideOnClickModal: {
|
|
52
|
-
type:
|
|
52
|
+
type: vue6.PropType<boolean>;
|
|
53
53
|
default: boolean;
|
|
54
54
|
};
|
|
55
|
-
countRender:
|
|
55
|
+
countRender: vue6.PropType<_gx_design_vue_pro_utils3.WithFalse<(current: number, total: number) => _gx_design_vue_pro_utils3.CustomRender>>;
|
|
56
56
|
icons: {
|
|
57
|
-
type:
|
|
57
|
+
type: vue6.PropType<PreviewPropsIcons>;
|
|
58
58
|
default: () => PreviewPropsIcons;
|
|
59
59
|
};
|
|
60
|
-
onTransform:
|
|
60
|
+
onTransform: vue6.PropType<(info: {
|
|
61
61
|
transform: TransformType;
|
|
62
62
|
action: TransformAction;
|
|
63
63
|
}) => void>;
|
|
64
|
-
onOpenChange:
|
|
65
|
-
'onUpdate:open':
|
|
66
|
-
}>, () =>
|
|
64
|
+
onOpenChange: vue6.PropType<(val: boolean) => void>;
|
|
65
|
+
'onUpdate:open': vue6.PropType<(val: boolean) => void>;
|
|
66
|
+
}>, () => ant_design_vue_es__util_type0.VueNode, {}, {}, {}, vue6.ComponentOptionsMixin, vue6.ComponentOptionsMixin, {
|
|
67
67
|
close: () => true;
|
|
68
68
|
transform: (_info: {
|
|
69
69
|
transform: TransformType;
|
|
70
70
|
action: TransformAction;
|
|
71
71
|
}) => true;
|
|
72
72
|
'update:open': (_val: boolean) => true;
|
|
73
|
-
}, string,
|
|
73
|
+
}, string, vue6.PublicProps, Readonly<ExtractPropTypes<{
|
|
74
74
|
urls: {
|
|
75
|
-
type:
|
|
75
|
+
type: vue6.PropType<string[]>;
|
|
76
76
|
default: () => any[];
|
|
77
77
|
};
|
|
78
78
|
open: {
|
|
79
|
-
type:
|
|
79
|
+
type: vue6.PropType<boolean>;
|
|
80
80
|
default: boolean;
|
|
81
81
|
};
|
|
82
82
|
scaleStep: {
|
|
83
|
-
type:
|
|
83
|
+
type: vue6.PropType<number>;
|
|
84
84
|
default: number;
|
|
85
85
|
};
|
|
86
86
|
minScale: {
|
|
87
|
-
type:
|
|
87
|
+
type: vue6.PropType<number>;
|
|
88
88
|
default: number;
|
|
89
89
|
};
|
|
90
90
|
maxScale: {
|
|
91
|
-
type:
|
|
91
|
+
type: vue6.PropType<number>;
|
|
92
92
|
default: number;
|
|
93
93
|
};
|
|
94
94
|
movable: {
|
|
95
|
-
type:
|
|
95
|
+
type: vue6.PropType<boolean>;
|
|
96
96
|
default: boolean;
|
|
97
97
|
};
|
|
98
|
-
disabled:
|
|
98
|
+
disabled: vue6.PropType<boolean>;
|
|
99
99
|
zIndex: {
|
|
100
|
-
type:
|
|
100
|
+
type: vue6.PropType<number>;
|
|
101
101
|
default: number;
|
|
102
102
|
};
|
|
103
103
|
current: {
|
|
104
|
-
type:
|
|
104
|
+
type: vue6.PropType<number>;
|
|
105
105
|
default: number;
|
|
106
106
|
};
|
|
107
107
|
infinite: {
|
|
108
|
-
type:
|
|
108
|
+
type: vue6.PropType<boolean>;
|
|
109
109
|
default: boolean;
|
|
110
110
|
};
|
|
111
111
|
getContainer: {
|
|
112
|
-
type:
|
|
112
|
+
type: vue6.PropType<string>;
|
|
113
113
|
};
|
|
114
114
|
onHideOnClickModal: {
|
|
115
|
-
type:
|
|
115
|
+
type: vue6.PropType<boolean>;
|
|
116
116
|
default: boolean;
|
|
117
117
|
};
|
|
118
|
-
countRender:
|
|
118
|
+
countRender: vue6.PropType<_gx_design_vue_pro_utils3.WithFalse<(current: number, total: number) => _gx_design_vue_pro_utils3.CustomRender>>;
|
|
119
119
|
icons: {
|
|
120
|
-
type:
|
|
120
|
+
type: vue6.PropType<PreviewPropsIcons>;
|
|
121
121
|
default: () => PreviewPropsIcons;
|
|
122
122
|
};
|
|
123
|
-
onTransform:
|
|
123
|
+
onTransform: vue6.PropType<(info: {
|
|
124
124
|
transform: TransformType;
|
|
125
125
|
action: TransformAction;
|
|
126
126
|
}) => void>;
|
|
127
|
-
onOpenChange:
|
|
128
|
-
'onUpdate:open':
|
|
127
|
+
onOpenChange: vue6.PropType<(val: boolean) => void>;
|
|
128
|
+
'onUpdate:open': vue6.PropType<(val: boolean) => void>;
|
|
129
129
|
}>> & Readonly<{
|
|
130
130
|
onClose?: () => any;
|
|
131
131
|
onTransform?: (_info: {
|
|
@@ -134,17 +134,17 @@ declare const GImagePreview: vue45.DefineComponent<ExtractPropTypes<{
|
|
|
134
134
|
}) => any;
|
|
135
135
|
"onUpdate:open"?: (_val: boolean) => any;
|
|
136
136
|
}>, {
|
|
137
|
-
urls: string[];
|
|
138
137
|
zIndex: number;
|
|
139
|
-
current: number;
|
|
140
|
-
infinite: boolean;
|
|
141
|
-
onHideOnClickModal: boolean;
|
|
142
138
|
icons: PreviewPropsIcons;
|
|
139
|
+
infinite: boolean;
|
|
140
|
+
current: number;
|
|
143
141
|
open: boolean;
|
|
142
|
+
urls: string[];
|
|
144
143
|
scaleStep: number;
|
|
145
144
|
minScale: number;
|
|
146
145
|
maxScale: number;
|
|
147
146
|
movable: boolean;
|
|
147
|
+
onHideOnClickModal: boolean;
|
|
148
148
|
}, SlotsType<{
|
|
149
149
|
close: () => void;
|
|
150
150
|
left: () => void;
|
|
@@ -157,6 +157,6 @@ declare const GImagePreview: vue45.DefineComponent<ExtractPropTypes<{
|
|
|
157
157
|
flipY: () => void;
|
|
158
158
|
rotateLeft: () => void;
|
|
159
159
|
placeholder: () => void;
|
|
160
|
-
}>, {}, {}, string,
|
|
160
|
+
}>, {}, {}, string, vue6.ComponentProvideOptions, true, {}, any>;
|
|
161
161
|
//#endregion
|
|
162
162
|
export { ImagePreviewProps, GImagePreview as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue45 from "vue";
|
|
2
2
|
import { CSSObject, Keyframe, ProAliasToken } from "@gx-design-vue/pro-provider";
|
|
3
3
|
import * as ant_design_vue_es__util_type0 from "ant-design-vue/es/_util/type";
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ declare function genPreviewOperationsStyle(token: ImageToken): CSSObject;
|
|
|
24
24
|
declare function genPreviewSwitchStyle(token: ImageToken): CSSObject;
|
|
25
25
|
declare function useStyle(componentCls: string): {
|
|
26
26
|
wrapSSR: (node: ant_design_vue_es__util_type0.VueNode) => ant_design_vue_es__util_type0.VueNode;
|
|
27
|
-
hashId:
|
|
27
|
+
hashId: vue45.ComputedRef<string>;
|
|
28
28
|
};
|
|
29
29
|
//#endregion
|
|
30
30
|
export { ImageToken, PositionType, genBoxStyle, genPreviewOperationsStyle, genPreviewSwitchStyle, resetComponent, useStyle, viewFadeIn, viewFadeOut };
|
package/dist/image.esm.js
CHANGED
|
@@ -408,7 +408,7 @@ function omit(e, t) {
|
|
|
408
408
|
}
|
|
409
409
|
return n;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function isEqualsSameValueZero(e, t) {
|
|
412
412
|
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
413
413
|
}
|
|
414
414
|
function isEqualWith(e, t, n) {
|
|
@@ -435,7 +435,7 @@ function areObjectsEqual(e, t, n, r) {
|
|
|
435
435
|
if (i === "[object Arguments]" && (i = objectTag), a === "[object Arguments]" && (a = objectTag), i !== a) return !1;
|
|
436
436
|
switch (i) {
|
|
437
437
|
case stringTag: return e.toString() === t.toString();
|
|
438
|
-
case numberTag: return
|
|
438
|
+
case numberTag: return isEqualsSameValueZero(e.valueOf(), t.valueOf());
|
|
439
439
|
case booleanTag:
|
|
440
440
|
case dateTag:
|
|
441
441
|
case symbolTag: return Object.is(e.valueOf(), t.valueOf());
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/image",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.0-alpha.
|
|
4
|
+
"version": "0.2.0-alpha.1",
|
|
5
5
|
"description": "Gx Design Image",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "gx12358",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"@ctrl/tinycolor": "^3.5.0",
|
|
45
45
|
"@vueuse/core": "^14.2.0",
|
|
46
46
|
"ant-design-vue": "^4.2.6",
|
|
47
|
-
"es-toolkit": "1.43.0",
|
|
48
|
-
"@gx-design-vue/pro-hooks": "0.2.0-alpha.
|
|
49
|
-
"@gx-design-vue/pro-
|
|
50
|
-
"@gx-design-vue/pro-
|
|
47
|
+
"es-toolkit": "^1.43.0",
|
|
48
|
+
"@gx-design-vue/pro-hooks": "^0.2.0-alpha.2",
|
|
49
|
+
"@gx-design-vue/pro-utils": "^0.2.0-alpha.2",
|
|
50
|
+
"@gx-design-vue/pro-provider": "^0.1.0-alpha.1"
|
|
51
51
|
},
|
|
52
52
|
"browserslist": [
|
|
53
53
|
"> 1%",
|