@gx-design-vue/image 0.2.0-beta.29 → 0.2.0-beta.30
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/Image.d.ts +2 -1
- package/dist/ImagePreview/index.d.ts +2 -2
- package/dist/ImagePreview/props.d.ts +9 -9
- package/dist/ImagePreview/typings.d.ts +3 -2
- package/dist/image.js +437 -421
- package/dist/image.umd.cjs +12 -1
- package/dist/index.d.ts +4 -5
- package/dist/slots.d.ts +3 -0
- package/package.json +4 -4
package/dist/Image.d.ts
CHANGED
|
@@ -154,8 +154,9 @@ declare const GImage: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
154
154
|
close(): void;
|
|
155
155
|
left(): void;
|
|
156
156
|
right(): void;
|
|
157
|
+
countRender(): void;
|
|
157
158
|
rotateRight(): void;
|
|
158
|
-
|
|
159
|
+
zoomIn(): void;
|
|
159
160
|
zoomOut(): void;
|
|
160
161
|
flipX(): void;
|
|
161
162
|
flipY(): void;
|
|
@@ -2,7 +2,6 @@ import type { ExtractPropTypes, SlotsType } from 'vue';
|
|
|
2
2
|
import type { TransformAction, TransformType } from './hooks/useImageTransform';
|
|
3
3
|
import type { PreviewPropsIcons } from './props';
|
|
4
4
|
import imagePreviewProps from './props';
|
|
5
|
-
export declare const slotsNames: string[];
|
|
6
5
|
export type ImagePreviewProps = Partial<ExtractPropTypes<typeof imagePreviewProps>>;
|
|
7
6
|
declare const GImagePreview: import("vue").DefineComponent<ExtractPropTypes<{
|
|
8
7
|
urls: {
|
|
@@ -146,8 +145,9 @@ declare const GImagePreview: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
146
145
|
close(): void;
|
|
147
146
|
left(): void;
|
|
148
147
|
right(): void;
|
|
148
|
+
countRender(): void;
|
|
149
149
|
rotateRight(): void;
|
|
150
|
-
|
|
150
|
+
zoomIn(): void;
|
|
151
151
|
zoomOut(): void;
|
|
152
152
|
flipX(): void;
|
|
153
153
|
flipY(): void;
|
|
@@ -2,15 +2,15 @@ import type { CustomRender, WithFalse } from '@gx-design-vue/pro-utils';
|
|
|
2
2
|
import type { PropType, VNode } from 'vue';
|
|
3
3
|
import type { TransformAction, TransformType } from './hooks/useImageTransform';
|
|
4
4
|
export interface PreviewPropsIcons {
|
|
5
|
-
close?:
|
|
6
|
-
rotateLeft?:
|
|
7
|
-
rotateRight?:
|
|
8
|
-
zoomIn?:
|
|
9
|
-
zoomOut?:
|
|
10
|
-
left?:
|
|
11
|
-
right?:
|
|
12
|
-
flipX?:
|
|
13
|
-
flipY?:
|
|
5
|
+
close?: WithFalse<CustomRender>;
|
|
6
|
+
rotateLeft?: WithFalse<CustomRender>;
|
|
7
|
+
rotateRight?: WithFalse<CustomRender>;
|
|
8
|
+
zoomIn?: WithFalse<CustomRender>;
|
|
9
|
+
zoomOut?: WithFalse<CustomRender>;
|
|
10
|
+
left?: WithFalse<CustomRender>;
|
|
11
|
+
right?: WithFalse<CustomRender>;
|
|
12
|
+
flipX?: WithFalse<CustomRender>;
|
|
13
|
+
flipY?: WithFalse<CustomRender>;
|
|
14
14
|
}
|
|
15
15
|
export type BaseImagePreviewProps = Partial<{
|
|
16
16
|
urls: string[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CustomRender, WithFalse } from '@gx-design-vue/pro-utils';
|
|
2
|
+
import type { ComputedRef } from 'vue';
|
|
2
3
|
import type { PreviewPropsIcons } from './props';
|
|
3
4
|
export type MouseEventHandler = (e: MouseEvent) => void;
|
|
4
5
|
export interface PreviewUrl {
|
|
@@ -8,7 +9,7 @@ export interface PreviewUrl {
|
|
|
8
9
|
}
|
|
9
10
|
export interface ImagePreviewTools {
|
|
10
11
|
type: keyof PreviewPropsIcons;
|
|
11
|
-
icon:
|
|
12
|
+
icon: WithFalse<CustomRender>;
|
|
12
13
|
onClick: () => void;
|
|
13
14
|
disabled?: ComputedRef<boolean>;
|
|
14
15
|
}
|