@uzum-tech/ui 2.3.4 → 2.3.5
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.js +402 -378
- package/dist/index.mjs +402 -378
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/components.d.ts +59 -41
- package/es/image/index.d.ts +2 -2
- package/es/image/index.mjs +2 -1
- package/es/image/src/ImagePreview.d.ts +60 -184
- package/es/image/src/ImagePreview.mjs +12 -18
- package/es/image/src/interface.d.ts +156 -3
- package/es/image/src/interface.mjs +23 -1
- package/es/image/src/public-types.d.ts +11 -5
- package/es/image/src/styles/index.cssr.mjs +11 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/components.d.ts +59 -41
- package/lib/image/index.d.ts +2 -2
- package/lib/image/index.js +3 -2
- package/lib/image/src/ImagePreview.d.ts +60 -184
- package/lib/image/src/ImagePreview.js +18 -17
- package/lib/image/src/interface.d.ts +156 -3
- package/lib/image/src/interface.js +12 -1
- package/lib/image/src/public-types.d.ts +11 -5
- package/lib/image/src/styles/index.cssr.js +11 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +47 -2
package/es/components.d.ts
CHANGED
|
@@ -111613,26 +111613,34 @@ export declare const UImageGroup: import("vue").DefineComponent<import("vue").Ex
|
|
|
111613
111613
|
defaultCurrent: number;
|
|
111614
111614
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
111615
111615
|
export declare const UImagePreview: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
111616
|
-
src: StringConstructor;
|
|
111617
|
-
show: {
|
|
111618
|
-
type: BooleanConstructor;
|
|
111619
|
-
default: undefined;
|
|
111616
|
+
readonly src: StringConstructor;
|
|
111617
|
+
readonly show: {
|
|
111618
|
+
readonly type: BooleanConstructor;
|
|
111619
|
+
readonly default: undefined;
|
|
111620
111620
|
};
|
|
111621
|
-
defaultShow: BooleanConstructor;
|
|
111622
|
-
'onUpdate:show': import("vue").PropType<import("./_utils").MaybeArray<(show: boolean) => void>>;
|
|
111623
|
-
|
|
111624
|
-
|
|
111625
|
-
|
|
111626
|
-
|
|
111627
|
-
|
|
111628
|
-
|
|
111629
|
-
|
|
111621
|
+
readonly defaultShow: BooleanConstructor;
|
|
111622
|
+
readonly 'onUpdate:show': import("vue").PropType<import("./_utils").MaybeArray<(show: boolean) => void>>;
|
|
111623
|
+
readonly loading: {
|
|
111624
|
+
readonly type: BooleanConstructor;
|
|
111625
|
+
readonly default: false;
|
|
111626
|
+
};
|
|
111627
|
+
readonly spinProps: {
|
|
111628
|
+
readonly type: import("vue").PropType<Partial<import("./spin").SpinProps>>;
|
|
111629
|
+
readonly default: undefined;
|
|
111630
|
+
};
|
|
111631
|
+
readonly onUpdateShow: import("vue").PropType<import("./_utils").MaybeArray<(show: boolean) => void>>;
|
|
111632
|
+
readonly onNext: import("vue").PropType<() => void>;
|
|
111633
|
+
readonly onPrev: import("vue").PropType<() => void>;
|
|
111634
|
+
readonly onClose: import("vue").PropType<import("./_utils").MaybeArray<() => void>>;
|
|
111635
|
+
readonly onPreviewPrev: import("vue").PropType<() => void>;
|
|
111636
|
+
readonly onPreviewNext: import("vue").PropType<() => void>;
|
|
111637
|
+
readonly showToolbar: {
|
|
111630
111638
|
type: BooleanConstructor;
|
|
111631
111639
|
default: boolean;
|
|
111632
111640
|
};
|
|
111633
|
-
showToolbarTooltip: BooleanConstructor;
|
|
111634
|
-
renderToolbar: import("vue").PropType<import("./image").ImageRenderToolbar>;
|
|
111635
|
-
theme: import("vue").PropType<import("./_mixins").Theme<"Image", {
|
|
111641
|
+
readonly showToolbarTooltip: BooleanConstructor;
|
|
111642
|
+
readonly renderToolbar: import("vue").PropType<import("./image").ImageRenderToolbar>;
|
|
111643
|
+
readonly theme: import("vue").PropType<import("./_mixins").Theme<"Image", {
|
|
111636
111644
|
toolbarIconColor: string;
|
|
111637
111645
|
toolbarColor: string;
|
|
111638
111646
|
toolbarBoxShadow: string;
|
|
@@ -111672,7 +111680,7 @@ export declare const UImagePreview: import("vue").DefineComponent<import("vue").
|
|
|
111672
111680
|
}, any>;
|
|
111673
111681
|
}>;
|
|
111674
111682
|
}>>;
|
|
111675
|
-
themeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Image", {
|
|
111683
|
+
readonly themeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Image", {
|
|
111676
111684
|
toolbarIconColor: string;
|
|
111677
111685
|
toolbarColor: string;
|
|
111678
111686
|
toolbarBoxShadow: string;
|
|
@@ -111712,7 +111720,7 @@ export declare const UImagePreview: import("vue").DefineComponent<import("vue").
|
|
|
111712
111720
|
}, any>;
|
|
111713
111721
|
}>;
|
|
111714
111722
|
}>>>;
|
|
111715
|
-
builtinThemeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Image", {
|
|
111723
|
+
readonly builtinThemeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Image", {
|
|
111716
111724
|
toolbarIconColor: string;
|
|
111717
111725
|
toolbarColor: string;
|
|
111718
111726
|
toolbarBoxShadow: string;
|
|
@@ -111790,26 +111798,34 @@ export declare const UImagePreview: import("vue").DefineComponent<import("vue").
|
|
|
111790
111798
|
doUpdateShow: (value: boolean) => void;
|
|
111791
111799
|
close: () => void;
|
|
111792
111800
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
111793
|
-
src: StringConstructor;
|
|
111794
|
-
show: {
|
|
111795
|
-
type: BooleanConstructor;
|
|
111796
|
-
default: undefined;
|
|
111801
|
+
readonly src: StringConstructor;
|
|
111802
|
+
readonly show: {
|
|
111803
|
+
readonly type: BooleanConstructor;
|
|
111804
|
+
readonly default: undefined;
|
|
111797
111805
|
};
|
|
111798
|
-
defaultShow: BooleanConstructor;
|
|
111799
|
-
'onUpdate:show': import("vue").PropType<import("./_utils").MaybeArray<(show: boolean) => void>>;
|
|
111800
|
-
|
|
111801
|
-
|
|
111802
|
-
|
|
111803
|
-
|
|
111804
|
-
|
|
111805
|
-
|
|
111806
|
-
|
|
111806
|
+
readonly defaultShow: BooleanConstructor;
|
|
111807
|
+
readonly 'onUpdate:show': import("vue").PropType<import("./_utils").MaybeArray<(show: boolean) => void>>;
|
|
111808
|
+
readonly loading: {
|
|
111809
|
+
readonly type: BooleanConstructor;
|
|
111810
|
+
readonly default: false;
|
|
111811
|
+
};
|
|
111812
|
+
readonly spinProps: {
|
|
111813
|
+
readonly type: import("vue").PropType<Partial<import("./spin").SpinProps>>;
|
|
111814
|
+
readonly default: undefined;
|
|
111815
|
+
};
|
|
111816
|
+
readonly onUpdateShow: import("vue").PropType<import("./_utils").MaybeArray<(show: boolean) => void>>;
|
|
111817
|
+
readonly onNext: import("vue").PropType<() => void>;
|
|
111818
|
+
readonly onPrev: import("vue").PropType<() => void>;
|
|
111819
|
+
readonly onClose: import("vue").PropType<import("./_utils").MaybeArray<() => void>>;
|
|
111820
|
+
readonly onPreviewPrev: import("vue").PropType<() => void>;
|
|
111821
|
+
readonly onPreviewNext: import("vue").PropType<() => void>;
|
|
111822
|
+
readonly showToolbar: {
|
|
111807
111823
|
type: BooleanConstructor;
|
|
111808
111824
|
default: boolean;
|
|
111809
111825
|
};
|
|
111810
|
-
showToolbarTooltip: BooleanConstructor;
|
|
111811
|
-
renderToolbar: import("vue").PropType<import("./image").ImageRenderToolbar>;
|
|
111812
|
-
theme: import("vue").PropType<import("./_mixins").Theme<"Image", {
|
|
111826
|
+
readonly showToolbarTooltip: BooleanConstructor;
|
|
111827
|
+
readonly renderToolbar: import("vue").PropType<import("./image").ImageRenderToolbar>;
|
|
111828
|
+
readonly theme: import("vue").PropType<import("./_mixins").Theme<"Image", {
|
|
111813
111829
|
toolbarIconColor: string;
|
|
111814
111830
|
toolbarColor: string;
|
|
111815
111831
|
toolbarBoxShadow: string;
|
|
@@ -111849,7 +111865,7 @@ export declare const UImagePreview: import("vue").DefineComponent<import("vue").
|
|
|
111849
111865
|
}, any>;
|
|
111850
111866
|
}>;
|
|
111851
111867
|
}>>;
|
|
111852
|
-
themeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Image", {
|
|
111868
|
+
readonly themeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Image", {
|
|
111853
111869
|
toolbarIconColor: string;
|
|
111854
111870
|
toolbarColor: string;
|
|
111855
111871
|
toolbarBoxShadow: string;
|
|
@@ -111889,7 +111905,7 @@ export declare const UImagePreview: import("vue").DefineComponent<import("vue").
|
|
|
111889
111905
|
}, any>;
|
|
111890
111906
|
}>;
|
|
111891
111907
|
}>>>;
|
|
111892
|
-
builtinThemeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Image", {
|
|
111908
|
+
readonly builtinThemeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Image", {
|
|
111893
111909
|
toolbarIconColor: string;
|
|
111894
111910
|
toolbarColor: string;
|
|
111895
111911
|
toolbarBoxShadow: string;
|
|
@@ -111930,11 +111946,13 @@ export declare const UImagePreview: import("vue").DefineComponent<import("vue").
|
|
|
111930
111946
|
}>;
|
|
111931
111947
|
}>>>;
|
|
111932
111948
|
}>> & Readonly<{}>, {
|
|
111933
|
-
|
|
111934
|
-
|
|
111935
|
-
|
|
111936
|
-
|
|
111937
|
-
|
|
111949
|
+
readonly loading: boolean;
|
|
111950
|
+
readonly show: boolean;
|
|
111951
|
+
readonly spinProps: Partial<import("./spin").SpinProps>;
|
|
111952
|
+
readonly defaultShow: boolean;
|
|
111953
|
+
readonly showToolbar: boolean;
|
|
111954
|
+
readonly showToolbarTooltip: boolean;
|
|
111955
|
+
}, import("vue").SlotsType<import("./image").ImagePreviewSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
111938
111956
|
export type * from './infinite-scroll';
|
|
111939
111957
|
export { infiniteScrollProps } from './infinite-scroll';
|
|
111940
111958
|
export declare const UInfiniteScroll: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
package/es/image/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export { imageProps, default as UImage } from './src/Image';
|
|
|
2
2
|
export type { ImageProps } from './src/Image';
|
|
3
3
|
export { imageGroupProps, default as UImageGroup } from './src/ImageGroup';
|
|
4
4
|
export type { ImageGroupProps } from './src/ImageGroup';
|
|
5
|
-
export {
|
|
6
|
-
export type
|
|
5
|
+
export { default as UImagePreview } from './src/ImagePreview';
|
|
6
|
+
export { imagePreviewProps, type ImagePreviewProps } from './src/interface';
|
|
7
7
|
export type * from './src/public-types';
|
package/es/image/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { imageProps, default as UImage } from "./src/Image.mjs";
|
|
2
2
|
export { imageGroupProps, default as UImageGroup } from "./src/ImageGroup.mjs";
|
|
3
|
-
export {
|
|
3
|
+
export { default as UImagePreview } from "./src/ImagePreview.mjs";
|
|
4
|
+
export { imagePreviewProps } from "./src/interface.mjs";
|
|
@@ -1,168 +1,34 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
src: StringConstructor;
|
|
5
|
-
show: {
|
|
6
|
-
type: BooleanConstructor;
|
|
7
|
-
default: undefined;
|
|
1
|
+
import type { SlotsType, VNode } from 'vue';
|
|
2
|
+
import type { ImagePreviewSlots } from './public-types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
readonly src: StringConstructor;
|
|
5
|
+
readonly show: {
|
|
6
|
+
readonly type: BooleanConstructor;
|
|
7
|
+
readonly default: undefined;
|
|
8
8
|
};
|
|
9
|
-
defaultShow: BooleanConstructor;
|
|
10
|
-
'onUpdate:show': PropType<MaybeArray<(show: boolean) => void>>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
onClose: PropType<MaybeArray<() => void>>;
|
|
15
|
-
onPreviewPrev: PropType<() => void>;
|
|
16
|
-
onPreviewNext: PropType<() => void>;
|
|
17
|
-
showToolbar: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: boolean;
|
|
9
|
+
readonly defaultShow: BooleanConstructor;
|
|
10
|
+
readonly 'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(show: boolean) => void>>;
|
|
11
|
+
readonly loading: {
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly default: false;
|
|
20
14
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
toolbarIconColor: string;
|
|
25
|
-
toolbarColor: string;
|
|
26
|
-
toolbarBoxShadow: string;
|
|
27
|
-
toolbarBorderRadius: string;
|
|
28
|
-
overlayColor: string;
|
|
29
|
-
}, {
|
|
30
|
-
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
31
|
-
padding: string;
|
|
32
|
-
textPadding: string;
|
|
33
|
-
titleSize: string;
|
|
34
|
-
titleWeight: string;
|
|
35
|
-
titleLineHeight: string;
|
|
36
|
-
subtitleSize: string;
|
|
37
|
-
subtitleMargin: string;
|
|
38
|
-
subtitleWeight: string;
|
|
39
|
-
subtitleLineHeight: string;
|
|
40
|
-
iconSize: string;
|
|
41
|
-
arrowSpace: string;
|
|
42
|
-
noArrowSpace: string;
|
|
43
|
-
borderRadius: string;
|
|
44
|
-
color: string;
|
|
45
|
-
textColor: string;
|
|
46
|
-
}, {
|
|
47
|
-
Popover: import("../../_mixins").Theme<"Popover", {
|
|
48
|
-
space: string;
|
|
49
|
-
spaceArrow: string;
|
|
50
|
-
arrowOffset: string;
|
|
51
|
-
arrowOffsetVertical: string;
|
|
52
|
-
arrowHeight: string;
|
|
53
|
-
padding: string;
|
|
54
|
-
fontSize: string;
|
|
55
|
-
borderRadius: string;
|
|
56
|
-
color: string;
|
|
57
|
-
dividerColor: string;
|
|
58
|
-
textColor: string;
|
|
59
|
-
boxShadow: string;
|
|
60
|
-
}, any>;
|
|
61
|
-
}>;
|
|
62
|
-
}>>;
|
|
63
|
-
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
64
|
-
toolbarIconColor: string;
|
|
65
|
-
toolbarColor: string;
|
|
66
|
-
toolbarBoxShadow: string;
|
|
67
|
-
toolbarBorderRadius: string;
|
|
68
|
-
overlayColor: string;
|
|
69
|
-
}, {
|
|
70
|
-
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
71
|
-
padding: string;
|
|
72
|
-
textPadding: string;
|
|
73
|
-
titleSize: string;
|
|
74
|
-
titleWeight: string;
|
|
75
|
-
titleLineHeight: string;
|
|
76
|
-
subtitleSize: string;
|
|
77
|
-
subtitleMargin: string;
|
|
78
|
-
subtitleWeight: string;
|
|
79
|
-
subtitleLineHeight: string;
|
|
80
|
-
iconSize: string;
|
|
81
|
-
arrowSpace: string;
|
|
82
|
-
noArrowSpace: string;
|
|
83
|
-
borderRadius: string;
|
|
84
|
-
color: string;
|
|
85
|
-
textColor: string;
|
|
86
|
-
}, {
|
|
87
|
-
Popover: import("../../_mixins").Theme<"Popover", {
|
|
88
|
-
space: string;
|
|
89
|
-
spaceArrow: string;
|
|
90
|
-
arrowOffset: string;
|
|
91
|
-
arrowOffsetVertical: string;
|
|
92
|
-
arrowHeight: string;
|
|
93
|
-
padding: string;
|
|
94
|
-
fontSize: string;
|
|
95
|
-
borderRadius: string;
|
|
96
|
-
color: string;
|
|
97
|
-
dividerColor: string;
|
|
98
|
-
textColor: string;
|
|
99
|
-
boxShadow: string;
|
|
100
|
-
}, any>;
|
|
101
|
-
}>;
|
|
102
|
-
}>>>;
|
|
103
|
-
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
104
|
-
toolbarIconColor: string;
|
|
105
|
-
toolbarColor: string;
|
|
106
|
-
toolbarBoxShadow: string;
|
|
107
|
-
toolbarBorderRadius: string;
|
|
108
|
-
overlayColor: string;
|
|
109
|
-
}, {
|
|
110
|
-
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
111
|
-
padding: string;
|
|
112
|
-
textPadding: string;
|
|
113
|
-
titleSize: string;
|
|
114
|
-
titleWeight: string;
|
|
115
|
-
titleLineHeight: string;
|
|
116
|
-
subtitleSize: string;
|
|
117
|
-
subtitleMargin: string;
|
|
118
|
-
subtitleWeight: string;
|
|
119
|
-
subtitleLineHeight: string;
|
|
120
|
-
iconSize: string;
|
|
121
|
-
arrowSpace: string;
|
|
122
|
-
noArrowSpace: string;
|
|
123
|
-
borderRadius: string;
|
|
124
|
-
color: string;
|
|
125
|
-
textColor: string;
|
|
126
|
-
}, {
|
|
127
|
-
Popover: import("../../_mixins").Theme<"Popover", {
|
|
128
|
-
space: string;
|
|
129
|
-
spaceArrow: string;
|
|
130
|
-
arrowOffset: string;
|
|
131
|
-
arrowOffsetVertical: string;
|
|
132
|
-
arrowHeight: string;
|
|
133
|
-
padding: string;
|
|
134
|
-
fontSize: string;
|
|
135
|
-
borderRadius: string;
|
|
136
|
-
color: string;
|
|
137
|
-
dividerColor: string;
|
|
138
|
-
textColor: string;
|
|
139
|
-
boxShadow: string;
|
|
140
|
-
}, any>;
|
|
141
|
-
}>;
|
|
142
|
-
}>>>;
|
|
143
|
-
};
|
|
144
|
-
export type ImagePreviewProps = ExtractPublicPropTypes<typeof imagePreviewProps>;
|
|
145
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
146
|
-
src: StringConstructor;
|
|
147
|
-
show: {
|
|
148
|
-
type: BooleanConstructor;
|
|
149
|
-
default: undefined;
|
|
15
|
+
readonly spinProps: {
|
|
16
|
+
readonly type: import("vue").PropType<Partial<import("../..").SpinProps>>;
|
|
17
|
+
readonly default: undefined;
|
|
150
18
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
onPreviewNext: PropType<() => void>;
|
|
159
|
-
showToolbar: {
|
|
19
|
+
readonly onUpdateShow: import("vue").PropType<import("../../_utils").MaybeArray<(show: boolean) => void>>;
|
|
20
|
+
readonly onNext: import("vue").PropType<() => void>;
|
|
21
|
+
readonly onPrev: import("vue").PropType<() => void>;
|
|
22
|
+
readonly onClose: import("vue").PropType<import("../../_utils").MaybeArray<() => void>>;
|
|
23
|
+
readonly onPreviewPrev: import("vue").PropType<() => void>;
|
|
24
|
+
readonly onPreviewNext: import("vue").PropType<() => void>;
|
|
25
|
+
readonly showToolbar: {
|
|
160
26
|
type: BooleanConstructor;
|
|
161
27
|
default: boolean;
|
|
162
28
|
};
|
|
163
|
-
showToolbarTooltip: BooleanConstructor;
|
|
164
|
-
renderToolbar: PropType<import("./public-types").ImageRenderToolbar>;
|
|
165
|
-
theme: PropType<import("../../_mixins").Theme<"Image", {
|
|
29
|
+
readonly showToolbarTooltip: BooleanConstructor;
|
|
30
|
+
readonly renderToolbar: import("vue").PropType<import("./public-types").ImageRenderToolbar>;
|
|
31
|
+
readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Image", {
|
|
166
32
|
toolbarIconColor: string;
|
|
167
33
|
toolbarColor: string;
|
|
168
34
|
toolbarBoxShadow: string;
|
|
@@ -202,7 +68,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
202
68
|
}, any>;
|
|
203
69
|
}>;
|
|
204
70
|
}>>;
|
|
205
|
-
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
71
|
+
readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
206
72
|
toolbarIconColor: string;
|
|
207
73
|
toolbarColor: string;
|
|
208
74
|
toolbarBoxShadow: string;
|
|
@@ -242,7 +108,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
242
108
|
}, any>;
|
|
243
109
|
}>;
|
|
244
110
|
}>>>;
|
|
245
|
-
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
111
|
+
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
246
112
|
toolbarIconColor: string;
|
|
247
113
|
toolbarColor: string;
|
|
248
114
|
toolbarBoxShadow: string;
|
|
@@ -320,26 +186,34 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
320
186
|
doUpdateShow: (value: boolean) => void;
|
|
321
187
|
close: () => void;
|
|
322
188
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
323
|
-
src: StringConstructor;
|
|
324
|
-
show: {
|
|
325
|
-
type: BooleanConstructor;
|
|
326
|
-
default: undefined;
|
|
189
|
+
readonly src: StringConstructor;
|
|
190
|
+
readonly show: {
|
|
191
|
+
readonly type: BooleanConstructor;
|
|
192
|
+
readonly default: undefined;
|
|
193
|
+
};
|
|
194
|
+
readonly defaultShow: BooleanConstructor;
|
|
195
|
+
readonly 'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(show: boolean) => void>>;
|
|
196
|
+
readonly loading: {
|
|
197
|
+
readonly type: BooleanConstructor;
|
|
198
|
+
readonly default: false;
|
|
199
|
+
};
|
|
200
|
+
readonly spinProps: {
|
|
201
|
+
readonly type: import("vue").PropType<Partial<import("../..").SpinProps>>;
|
|
202
|
+
readonly default: undefined;
|
|
327
203
|
};
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
onPreviewNext: PropType<() => void>;
|
|
336
|
-
showToolbar: {
|
|
204
|
+
readonly onUpdateShow: import("vue").PropType<import("../../_utils").MaybeArray<(show: boolean) => void>>;
|
|
205
|
+
readonly onNext: import("vue").PropType<() => void>;
|
|
206
|
+
readonly onPrev: import("vue").PropType<() => void>;
|
|
207
|
+
readonly onClose: import("vue").PropType<import("../../_utils").MaybeArray<() => void>>;
|
|
208
|
+
readonly onPreviewPrev: import("vue").PropType<() => void>;
|
|
209
|
+
readonly onPreviewNext: import("vue").PropType<() => void>;
|
|
210
|
+
readonly showToolbar: {
|
|
337
211
|
type: BooleanConstructor;
|
|
338
212
|
default: boolean;
|
|
339
213
|
};
|
|
340
|
-
showToolbarTooltip: BooleanConstructor;
|
|
341
|
-
renderToolbar: PropType<import("./public-types").ImageRenderToolbar>;
|
|
342
|
-
theme: PropType<import("../../_mixins").Theme<"Image", {
|
|
214
|
+
readonly showToolbarTooltip: BooleanConstructor;
|
|
215
|
+
readonly renderToolbar: import("vue").PropType<import("./public-types").ImageRenderToolbar>;
|
|
216
|
+
readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Image", {
|
|
343
217
|
toolbarIconColor: string;
|
|
344
218
|
toolbarColor: string;
|
|
345
219
|
toolbarBoxShadow: string;
|
|
@@ -379,7 +253,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
379
253
|
}, any>;
|
|
380
254
|
}>;
|
|
381
255
|
}>>;
|
|
382
|
-
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
256
|
+
readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
383
257
|
toolbarIconColor: string;
|
|
384
258
|
toolbarColor: string;
|
|
385
259
|
toolbarBoxShadow: string;
|
|
@@ -419,7 +293,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
419
293
|
}, any>;
|
|
420
294
|
}>;
|
|
421
295
|
}>>>;
|
|
422
|
-
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
296
|
+
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
423
297
|
toolbarIconColor: string;
|
|
424
298
|
toolbarColor: string;
|
|
425
299
|
toolbarBoxShadow: string;
|
|
@@ -460,9 +334,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
460
334
|
}>;
|
|
461
335
|
}>>>;
|
|
462
336
|
}>> & Readonly<{}>, {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
337
|
+
readonly loading: boolean;
|
|
338
|
+
readonly show: boolean;
|
|
339
|
+
readonly spinProps: Partial<import("../..").SpinProps>;
|
|
340
|
+
readonly defaultShow: boolean;
|
|
341
|
+
readonly showToolbar: boolean;
|
|
342
|
+
readonly showToolbarTooltip: boolean;
|
|
343
|
+
}, SlotsType<ImagePreviewSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
468
344
|
export default _default;
|
|
@@ -9,28 +9,16 @@ import { UBaseIcon } from "../../_internal/index.mjs";
|
|
|
9
9
|
import { RotateClockwiseIcon, RotateCounterclockwiseIcon, ZoomInIcon, ZoomOutIcon } from "../../_internal/icons/index.mjs";
|
|
10
10
|
import { useConfig, useLocale, useTheme, useThemeClass } from "../../_mixins/index.mjs";
|
|
11
11
|
import { call, download } from "../../_utils/index.mjs";
|
|
12
|
+
import { USpin } from "../../spin/index.mjs";
|
|
12
13
|
import { UTooltip } from "../../tooltip/index.mjs";
|
|
13
14
|
import { imageLight } from "../styles/index.mjs";
|
|
14
15
|
import { closeIcon } from "./icons.mjs";
|
|
15
|
-
import { imageContextKey,
|
|
16
|
+
import { BLEEDING, imageContextKey, imagePreviewProps } from "./interface.mjs";
|
|
16
17
|
import style from "./styles/index.cssr.mjs";
|
|
17
|
-
const BLEEDING = 32;
|
|
18
|
-
export const imagePreviewProps = Object.assign(Object.assign({}, imagePreviewSharedProps), {
|
|
19
|
-
src: String,
|
|
20
|
-
show: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: undefined
|
|
23
|
-
},
|
|
24
|
-
defaultShow: Boolean,
|
|
25
|
-
'onUpdate:show': [Function, Array],
|
|
26
|
-
onUpdateShow: [Function, Array],
|
|
27
|
-
onNext: Function,
|
|
28
|
-
onPrev: Function,
|
|
29
|
-
onClose: [Function, Array]
|
|
30
|
-
});
|
|
31
18
|
export default defineComponent({
|
|
32
19
|
name: 'ImagePreview',
|
|
33
20
|
props: imagePreviewProps,
|
|
21
|
+
slots: Object,
|
|
34
22
|
setup(props) {
|
|
35
23
|
const {
|
|
36
24
|
src
|
|
@@ -557,7 +545,7 @@ export default defineComponent({
|
|
|
557
545
|
return withDirectives(h("div", {
|
|
558
546
|
class: `${clsPrefix}-image-preview-wrapper`,
|
|
559
547
|
ref: "previewWrapperRef"
|
|
560
|
-
}, h("img", Object.assign({}, previewedImgProps, {
|
|
548
|
+
}, !this.loading ? h("img", Object.assign({}, previewedImgProps, {
|
|
561
549
|
draggable: false,
|
|
562
550
|
onMousedown: this.handlePreviewMousedown,
|
|
563
551
|
onDblclick: this.handlePreviewDblclick,
|
|
@@ -566,9 +554,15 @@ export default defineComponent({
|
|
|
566
554
|
src: this.previewSrc,
|
|
567
555
|
ref: "previewRef",
|
|
568
556
|
onDragstart: this.handleDragStart
|
|
569
|
-
}))), [[vShow, this.mergedShow]]);
|
|
557
|
+
})) : null), [[vShow, this.mergedShow]]);
|
|
570
558
|
}
|
|
571
|
-
})
|
|
559
|
+
}), this.mergedShow && this.loading && h("div", {
|
|
560
|
+
class: `${clsPrefix}-image-preview-loading`
|
|
561
|
+
}, h(USpin, Object.assign({}, this.spinProps), {
|
|
562
|
+
default: this.$slots['spin-default'],
|
|
563
|
+
icon: this.$slots['spin-icon'],
|
|
564
|
+
description: this.$slots['spin-description']
|
|
565
|
+
}))), [[zindexable, {
|
|
572
566
|
enabled: this.mergedShow
|
|
573
567
|
}]]);
|
|
574
568
|
}
|