iking-web-ui-pro 0.2.30 → 0.2.32

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.
@@ -0,0 +1,6 @@
1
+ export declare const IkImageViewer: import('../../utils/typescript').SFCWithInstall<import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps> & (new () => {
2
+ $slots: {
3
+ default?(_: {}): any;
4
+ };
5
+ })> & Record<string, any>;
6
+ export default IkImageViewer;
@@ -0,0 +1,11 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
5
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
+ export default _default;
7
+ type __VLS_WithTemplateSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,87 @@
1
+ import { Component, ExtractPropTypes, PropType } from 'vue';
2
+ import { default as ImageViewer } from './IkImageViewer.vue';
3
+
4
+ export type ImageViewerAction = 'zoomIn' | 'zoomOut' | 'clockwise' | 'anticlockwise';
5
+ export declare const imageViewerProps: {
6
+ /**
7
+ * @description preview link list.
8
+ */
9
+ urlList: {
10
+ type: PropType<string[]>;
11
+ default: () => never[];
12
+ };
13
+ /**
14
+ * @description preview backdrop z-index.
15
+ */
16
+ zIndex: {
17
+ type: NumberConstructor;
18
+ };
19
+ /**
20
+ * @description the initial preview image index, less than or equal to the length of `url-list`.
21
+ */
22
+ initialIndex: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
26
+ /**
27
+ * @description whether preview is infinite.
28
+ */
29
+ infinite: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ /**
34
+ * @description whether user can emit close event when clicking backdrop.
35
+ */
36
+ hideOnClickModal: BooleanConstructor;
37
+ /**
38
+ * @description whether to append image itself to body. A nested parent element attribute transform should have this attribute set to `true`.
39
+ */
40
+ teleported: BooleanConstructor;
41
+ /**
42
+ * @description whether the image-viewer can be closed by pressing ESC.
43
+ */
44
+ closeOnPressEscape: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ /**
49
+ * @description the zoom rate of the image viewer zoom event.
50
+ */
51
+ zoomRate: {
52
+ type: NumberConstructor;
53
+ default: number;
54
+ };
55
+ /**
56
+ * @description the min scale of the image viewer zoom event.
57
+ */
58
+ minScale: {
59
+ type: NumberConstructor;
60
+ default: number;
61
+ };
62
+ /**
63
+ * @description the max scale of the image viewer zoom event.
64
+ */
65
+ maxScale: {
66
+ type: NumberConstructor;
67
+ default: number;
68
+ };
69
+ /**
70
+ * @description set HTML attribute: crossorigin.
71
+ */
72
+ crossorigin: {
73
+ type: string[];
74
+ };
75
+ };
76
+ export type ImageViewerProps = ExtractPropTypes<typeof imageViewerProps>;
77
+ export declare const imageViewerEmits: {
78
+ close: () => boolean;
79
+ switch: (index: number) => boolean;
80
+ rotate: (deg: number) => boolean;
81
+ };
82
+ export type ImageViewerEmits = typeof imageViewerEmits;
83
+ export interface ImageViewerMode {
84
+ name: string;
85
+ icon: Component;
86
+ }
87
+ export type ImageViewerInstance = InstanceType<typeof ImageViewer>;
@@ -42,5 +42,6 @@ export * from './IkAutoCard';
42
42
  export * from './IkCurrencyInput';
43
43
  export * from './IkOnlyOffice';
44
44
  export * from './IkSelectTag';
45
+ export * from './IkImageViewer';
45
46
  export * from './Provider';
46
47
  export * from './IkPlayer';