@cyberpunk-vue/components 1.13.10 → 1.13.11
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/dialog/index.d.ts +3 -3
- package/dist/dialog/src/dialog.vue.d.ts +1 -1
- package/dist/image/index.d.ts +12 -12
- package/dist/image/src/image.d.ts +46 -7
- package/dist/image/src/image.vue.d.ts +5 -5
- package/dist/image-preview/index.d.ts +237 -0
- package/dist/image-preview/src/image-preview.d.ts +45 -1
- package/dist/image-preview/src/image-preview.vue.d.ts +18 -29
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1039 -997
- package/dist/upload/index.d.ts +3 -3
- package/dist/upload/src/upload.vue.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,44 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
scale: number;
|
|
3
|
-
rotate: number;
|
|
4
|
-
currentIndex: number;
|
|
5
|
-
currentUrl: string;
|
|
6
|
-
urlList: string[];
|
|
7
|
-
isSingle: boolean;
|
|
8
|
-
canPrev: boolean;
|
|
9
|
-
canNext: boolean;
|
|
10
|
-
zoomMin: number;
|
|
11
|
-
zoomMax: number;
|
|
12
|
-
zoomIn: () => void;
|
|
13
|
-
zoomOut: () => void;
|
|
14
|
-
rotateLeft: () => void;
|
|
15
|
-
rotateRight: () => void;
|
|
16
|
-
resetTransform: () => void;
|
|
17
|
-
prev: () => void;
|
|
18
|
-
next: () => void;
|
|
19
|
-
close: () => void;
|
|
20
|
-
download: () => void;
|
|
21
|
-
}
|
|
1
|
+
import { ImagePreviewToolbarSlotProps } from './image-preview';
|
|
22
2
|
declare function __VLS_template(): {
|
|
23
3
|
attrs: Partial<{}>;
|
|
24
4
|
slots: Readonly<{
|
|
25
5
|
/**
|
|
26
6
|
* 完全替换底部工具栏(覆盖内置按钮)
|
|
27
7
|
*/
|
|
28
|
-
toolbar?: (props:
|
|
8
|
+
toolbar?: (props: ImagePreviewToolbarSlotProps) => unknown;
|
|
29
9
|
/**
|
|
30
10
|
* 在内置工具栏末尾追加自定义按钮
|
|
31
11
|
*/
|
|
32
|
-
'toolbar-append'?: (props:
|
|
12
|
+
'toolbar-append'?: (props: ImagePreviewToolbarSlotProps) => unknown;
|
|
33
13
|
}> & {
|
|
34
14
|
/**
|
|
35
15
|
* 完全替换底部工具栏(覆盖内置按钮)
|
|
36
16
|
*/
|
|
37
|
-
toolbar?: (props:
|
|
17
|
+
toolbar?: (props: ImagePreviewToolbarSlotProps) => unknown;
|
|
38
18
|
/**
|
|
39
19
|
* 在内置工具栏末尾追加自定义按钮
|
|
40
20
|
*/
|
|
41
|
-
'toolbar-append'?: (props:
|
|
21
|
+
'toolbar-append'?: (props: ImagePreviewToolbarSlotProps) => unknown;
|
|
42
22
|
};
|
|
43
23
|
refs: {};
|
|
44
24
|
rootEl: any;
|
|
@@ -81,6 +61,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
81
61
|
readonly type: BooleanConstructor;
|
|
82
62
|
readonly default: false;
|
|
83
63
|
};
|
|
64
|
+
readonly closeOnClickModal: {
|
|
65
|
+
readonly type: BooleanConstructor;
|
|
66
|
+
readonly default: true;
|
|
67
|
+
};
|
|
84
68
|
}>, {
|
|
85
69
|
/** 关闭预览 */
|
|
86
70
|
close: () => void;
|
|
@@ -101,7 +85,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
101
85
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
102
86
|
switch: (index: number) => void;
|
|
103
87
|
"update:modelValue": (value: boolean) => void;
|
|
104
|
-
close: () => void;
|
|
88
|
+
close: (payload: import('./image-preview').ImagePreviewPayload) => void;
|
|
105
89
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
106
90
|
readonly modelValue: {
|
|
107
91
|
readonly type: BooleanConstructor;
|
|
@@ -139,20 +123,25 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
139
123
|
readonly type: BooleanConstructor;
|
|
140
124
|
readonly default: false;
|
|
141
125
|
};
|
|
126
|
+
readonly closeOnClickModal: {
|
|
127
|
+
readonly type: BooleanConstructor;
|
|
128
|
+
readonly default: true;
|
|
129
|
+
};
|
|
142
130
|
}>> & Readonly<{
|
|
143
131
|
onSwitch?: ((index: number) => any) | undefined;
|
|
144
132
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
145
|
-
onClose?: (() => any) | undefined;
|
|
133
|
+
onClose?: ((payload: import('./image-preview').ImagePreviewPayload) => any) | undefined;
|
|
146
134
|
}>, {
|
|
147
135
|
readonly type: "primary" | "success" | "warning" | "error" | "info" | "default";
|
|
148
136
|
readonly color: string;
|
|
149
137
|
readonly modelValue: boolean;
|
|
150
138
|
readonly infinite: boolean;
|
|
151
139
|
readonly zIndex: number;
|
|
152
|
-
readonly initialIndex: number;
|
|
153
|
-
readonly download: boolean;
|
|
154
140
|
readonly urlList: string[];
|
|
141
|
+
readonly initialIndex: number;
|
|
155
142
|
readonly teleportTo: string | HTMLElement;
|
|
143
|
+
readonly download: boolean;
|
|
144
|
+
readonly closeOnClickModal: boolean;
|
|
156
145
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
157
146
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
158
147
|
export default _default;
|