@cyberpunk-vue/components 1.6.0 → 1.7.0

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.
Files changed (51) hide show
  1. package/dist/button/index.d.ts +30 -0
  2. package/dist/button/index.d.ts.map +1 -1
  3. package/dist/button/src/button.d.ts +17 -0
  4. package/dist/button/src/button.d.ts.map +1 -1
  5. package/dist/button/src/button.vue.d.ts +18 -0
  6. package/dist/button/src/button.vue.d.ts.map +1 -1
  7. package/dist/card/index.d.ts +3 -3
  8. package/dist/card/src/card.vue.d.ts +1 -1
  9. package/dist/dropdown/index.d.ts +3 -3
  10. package/dist/dropdown/src/dropdown.vue.d.ts +1 -1
  11. package/dist/empty/index.d.ts +137 -0
  12. package/dist/empty/index.d.ts.map +1 -0
  13. package/dist/empty/src/empty.d.ts +63 -0
  14. package/dist/empty/src/empty.d.ts.map +1 -0
  15. package/dist/empty/src/empty.vue.d.ts +78 -0
  16. package/dist/empty/src/empty.vue.d.ts.map +1 -0
  17. package/dist/empty/src/instance.d.ts +3 -0
  18. package/dist/empty/src/instance.d.ts.map +1 -0
  19. package/dist/image/index.d.ts +60 -0
  20. package/dist/image/index.d.ts.map +1 -1
  21. package/dist/image/src/image.d.ts +36 -1
  22. package/dist/image/src/image.d.ts.map +1 -1
  23. package/dist/image/src/image.vue.d.ts +36 -0
  24. package/dist/image/src/image.vue.d.ts.map +1 -1
  25. package/dist/image-preview/index.d.ts +116 -0
  26. package/dist/image-preview/index.d.ts.map +1 -0
  27. package/dist/image-preview/src/image-preview.d.ts +99 -0
  28. package/dist/image-preview/src/image-preview.d.ts.map +1 -0
  29. package/dist/image-preview/src/image-preview.vue.d.ts +112 -0
  30. package/dist/image-preview/src/image-preview.vue.d.ts.map +1 -0
  31. package/dist/image-preview/src/instance.d.ts +3 -0
  32. package/dist/image-preview/src/instance.d.ts.map +1 -0
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.d.ts +2 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.mjs +4712 -3753
  37. package/dist/loading/index.d.ts +9 -0
  38. package/dist/loading/index.d.ts.map +1 -1
  39. package/dist/loading/src/loading.d.ts +17 -0
  40. package/dist/loading/src/loading.d.ts.map +1 -1
  41. package/dist/loading/src/loading.vue.d.ts +9 -0
  42. package/dist/loading/src/loading.vue.d.ts.map +1 -1
  43. package/dist/popover/src/popover.vue.d.ts +1 -1
  44. package/dist/tree/src/tree.vue.d.ts.map +1 -1
  45. package/dist/upload/index.d.ts +61 -1
  46. package/dist/upload/index.d.ts.map +1 -1
  47. package/dist/upload/src/upload.d.ts +37 -0
  48. package/dist/upload/src/upload.d.ts.map +1 -1
  49. package/dist/upload/src/upload.vue.d.ts +38 -2
  50. package/dist/upload/src/upload.vue.d.ts.map +1 -1
  51. package/package.json +4 -4
@@ -32,10 +32,26 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
32
32
  readonly type: BooleanConstructor;
33
33
  readonly default: false;
34
34
  };
35
+ readonly preview: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: false;
38
+ };
35
39
  readonly previewSrc: {
36
40
  readonly type: StringConstructor;
37
41
  readonly default: "";
38
42
  };
43
+ readonly previewSrcList: {
44
+ readonly type: import('vue').PropType<string[]>;
45
+ readonly default: () => never[];
46
+ };
47
+ readonly initialIndex: {
48
+ readonly type: NumberConstructor;
49
+ readonly default: 0;
50
+ };
51
+ readonly download: {
52
+ readonly type: BooleanConstructor;
53
+ readonly default: false;
54
+ };
39
55
  readonly fallbackSrc: {
40
56
  readonly type: StringConstructor;
41
57
  readonly default: "";
@@ -104,7 +120,11 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
104
120
  readonly src: string;
105
121
  readonly alt: string;
106
122
  readonly lazy: boolean;
123
+ readonly preview: boolean;
107
124
  readonly previewSrc: string;
125
+ readonly previewSrcList: string[];
126
+ readonly initialIndex: number;
127
+ readonly download: boolean;
108
128
  readonly fallbackSrc: string;
109
129
  readonly showDecor: boolean;
110
130
  readonly decorPosition: import('.').ImageDecorPosition;
@@ -145,10 +165,26 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
145
165
  readonly type: BooleanConstructor;
146
166
  readonly default: false;
147
167
  };
168
+ readonly preview: {
169
+ readonly type: BooleanConstructor;
170
+ readonly default: false;
171
+ };
148
172
  readonly previewSrc: {
149
173
  readonly type: StringConstructor;
150
174
  readonly default: "";
151
175
  };
176
+ readonly previewSrcList: {
177
+ readonly type: import('vue').PropType<string[]>;
178
+ readonly default: () => never[];
179
+ };
180
+ readonly initialIndex: {
181
+ readonly type: NumberConstructor;
182
+ readonly default: 0;
183
+ };
184
+ readonly download: {
185
+ readonly type: BooleanConstructor;
186
+ readonly default: false;
187
+ };
152
188
  readonly fallbackSrc: {
153
189
  readonly type: StringConstructor;
154
190
  readonly default: "";
@@ -214,7 +250,11 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
214
250
  readonly src: string;
215
251
  readonly alt: string;
216
252
  readonly lazy: boolean;
253
+ readonly preview: boolean;
217
254
  readonly previewSrc: string;
255
+ readonly previewSrcList: string[];
256
+ readonly initialIndex: number;
257
+ readonly download: boolean;
218
258
  readonly fallbackSrc: string;
219
259
  readonly showDecor: boolean;
220
260
  readonly decorPosition: import('.').ImageDecorPosition;
@@ -249,10 +289,26 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
249
289
  readonly type: BooleanConstructor;
250
290
  readonly default: false;
251
291
  };
292
+ readonly preview: {
293
+ readonly type: BooleanConstructor;
294
+ readonly default: false;
295
+ };
252
296
  readonly previewSrc: {
253
297
  readonly type: StringConstructor;
254
298
  readonly default: "";
255
299
  };
300
+ readonly previewSrcList: {
301
+ readonly type: import('vue').PropType<string[]>;
302
+ readonly default: () => never[];
303
+ };
304
+ readonly initialIndex: {
305
+ readonly type: NumberConstructor;
306
+ readonly default: 0;
307
+ };
308
+ readonly download: {
309
+ readonly type: BooleanConstructor;
310
+ readonly default: false;
311
+ };
256
312
  readonly fallbackSrc: {
257
313
  readonly type: StringConstructor;
258
314
  readonly default: "";
@@ -321,7 +377,11 @@ export declare const CpImage: import('../utils').SFCWithInstall<{
321
377
  readonly src: string;
322
378
  readonly alt: string;
323
379
  readonly lazy: boolean;
380
+ readonly preview: boolean;
324
381
  readonly previewSrc: string;
382
+ readonly previewSrcList: string[];
383
+ readonly initialIndex: number;
384
+ readonly download: boolean;
325
385
  readonly fallbackSrc: string;
326
386
  readonly showDecor: boolean;
327
387
  readonly decorPosition: import('.').ImageDecorPosition;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../image/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gFAK49H,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gFAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GALx8H,CAAA;AAEzC,eAAe,OAAO,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../image/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gFAKwqJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gFAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GALppJ,CAAA;AAEzC,eAAe,OAAO,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA"}
@@ -92,15 +92,50 @@ export declare const imageProps: {
92
92
  readonly type: BooleanConstructor;
93
93
  readonly default: false;
94
94
  };
95
+ /**
96
+ * 是否开启点击预览
97
+ * 开启后点击图片会弹出全屏大图预览
98
+ * @default false
99
+ */
100
+ readonly preview: {
101
+ readonly type: BooleanConstructor;
102
+ readonly default: false;
103
+ };
95
104
  /**
96
105
  * 预览大图地址
97
- * 为未来的图片预览功能预留
106
+ * 在预览中使用的高清图片地址,不指定则使用 src
98
107
  * @default ''
99
108
  */
100
109
  readonly previewSrc: {
101
110
  readonly type: StringConstructor;
102
111
  readonly default: "";
103
112
  };
113
+ /**
114
+ * 多图预览列表
115
+ * 传入后自动启用预览,点击图片可查看整个图片列表
116
+ * @default []
117
+ */
118
+ readonly previewSrcList: {
119
+ readonly type: PropType<string[]>;
120
+ readonly default: () => never[];
121
+ };
122
+ /**
123
+ * 初始预览索引,在 previewSrcList 模式下有效
124
+ * @default 0
125
+ * @example `<CpImage :preview-src-list="[...]" :initial-index="1" />`
126
+ */
127
+ readonly initialIndex: {
128
+ readonly type: NumberConstructor;
129
+ readonly default: 0;
130
+ };
131
+ /**
132
+ * 是否允许在预览时下载图片
133
+ * @default false
134
+ */
135
+ readonly download: {
136
+ readonly type: BooleanConstructor;
137
+ readonly default: false;
138
+ };
104
139
  /**
105
140
  * 加载失败时的回退图片地址
106
141
  * @default ''
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../image/src/image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAA;AAE3E;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEhE;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,CAAA;AAE1F;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU;IACnB;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;;OAIG;;uBAEiB,QAAQ,CAAC,QAAQ,CAAC;;;IAGtC;;;;;;;OAOG;;uBAEiB,QAAQ,CAAC,UAAU,CAAC;;;IAGxC;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;OAGG;;;;;IAKH;;;;OAIG;;uBAE2B,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGvD;;;;OAIG;;uBAE2B,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGvD;;;OAGG;;uBAEiB,QAAQ,CAAC,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;;;IAG9F;;;;OAIG;;;;;IAKH;;;OAGG;;;;;IAKH;;;;;;;OAOG;;uBAEiB,QAAQ,CAAC,kBAAkB,CA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AGG;kBACW,KAAK;IAEnB;;;OAGG;mBACY,KAAK;CACvB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAA"}
@@ -32,10 +32,26 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
32
32
  readonly type: BooleanConstructor;
33
33
  readonly default: false;
34
34
  };
35
+ readonly preview: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: false;
38
+ };
35
39
  readonly previewSrc: {
36
40
  readonly type: StringConstructor;
37
41
  readonly default: "";
38
42
  };
43
+ readonly previewSrcList: {
44
+ readonly type: import('vue').PropType<string[]>;
45
+ readonly default: () => never[];
46
+ };
47
+ readonly initialIndex: {
48
+ readonly type: NumberConstructor;
49
+ readonly default: 0;
50
+ };
51
+ readonly download: {
52
+ readonly type: BooleanConstructor;
53
+ readonly default: false;
54
+ };
39
55
  readonly fallbackSrc: {
40
56
  readonly type: StringConstructor;
41
57
  readonly default: "";
@@ -117,10 +133,26 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
117
133
  readonly type: BooleanConstructor;
118
134
  readonly default: false;
119
135
  };
136
+ readonly preview: {
137
+ readonly type: BooleanConstructor;
138
+ readonly default: false;
139
+ };
120
140
  readonly previewSrc: {
121
141
  readonly type: StringConstructor;
122
142
  readonly default: "";
123
143
  };
144
+ readonly previewSrcList: {
145
+ readonly type: import('vue').PropType<string[]>;
146
+ readonly default: () => never[];
147
+ };
148
+ readonly initialIndex: {
149
+ readonly type: NumberConstructor;
150
+ readonly default: 0;
151
+ };
152
+ readonly download: {
153
+ readonly type: BooleanConstructor;
154
+ readonly default: false;
155
+ };
124
156
  readonly fallbackSrc: {
125
157
  readonly type: StringConstructor;
126
158
  readonly default: "";
@@ -191,7 +223,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
191
223
  readonly src: string;
192
224
  readonly alt: string;
193
225
  readonly lazy: boolean;
226
+ readonly preview: boolean;
194
227
  readonly previewSrc: string;
228
+ readonly previewSrcList: string[];
229
+ readonly initialIndex: number;
230
+ readonly download: boolean;
195
231
  readonly fallbackSrc: string;
196
232
  readonly showDecor: boolean;
197
233
  readonly decorPosition: import('./image').ImageDecorPosition;
@@ -1 +1 @@
1
- {"version":3,"file":"image.vue.d.ts","sourceRoot":"","sources":["../../../image/src/image.vue"],"names":[],"mappings":"AA6ZA,iBAAS,cAAc;WA6GT,OAAO,IAA6B;;6BAbjB,GAAG;uBACT,GAAG;;;;;;;EAiB7B;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QArTrB;;;WAGG;QACH,CAtDqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAkDrB;;;WAGG;QACH,CAtDqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgXnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"image.vue.d.ts","sourceRoot":"","sources":["../../../image/src/image.vue"],"names":[],"mappings":"AAwcA,iBAAS,cAAc;WAmIT,OAAO,IAA6B;;6BAbjB,GAAG;uBACT,GAAG;;;;;;;EAiB7B;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAhWrB;;;WAGG;QACH,CAjEsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6DtC;;;WAGG;QACH,CAjEsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsapC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,116 @@
1
+ /**
2
+ * CpImagePreview 大图预览组件
3
+ *
4
+ * @description 赛博朋克风格全屏大图预览组件,支持缩放、旋转、多图切换。
5
+ *
6
+ * @example
7
+ * ```vue
8
+ * <CpImagePreview v-model="visible" :url-list="['/a.jpg', '/b.jpg']" />
9
+ * ```
10
+ */
11
+ export declare const CpImagePreview: import('../utils').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
+ readonly modelValue: {
13
+ readonly type: BooleanConstructor;
14
+ readonly default: false;
15
+ };
16
+ readonly urlList: {
17
+ readonly type: import('vue').PropType<string[]>;
18
+ readonly default: () => never[];
19
+ };
20
+ readonly initialIndex: {
21
+ readonly type: NumberConstructor;
22
+ readonly default: 0;
23
+ };
24
+ readonly zIndex: {
25
+ readonly type: NumberConstructor;
26
+ readonly default: 2000;
27
+ };
28
+ readonly infinite: {
29
+ readonly type: BooleanConstructor;
30
+ readonly default: true;
31
+ };
32
+ readonly teleportTo: {
33
+ readonly type: import('vue').PropType<string | HTMLElement>;
34
+ readonly default: "body";
35
+ };
36
+ readonly type: {
37
+ readonly type: import('vue').PropType<"default" | "primary" | "success" | "warning" | "error" | "info">;
38
+ readonly default: "primary";
39
+ };
40
+ readonly color: {
41
+ readonly type: StringConstructor;
42
+ readonly default: "";
43
+ };
44
+ readonly download: {
45
+ readonly type: BooleanConstructor;
46
+ readonly default: false;
47
+ };
48
+ }>, {
49
+ close: () => void;
50
+ prev: () => void;
51
+ next: () => void;
52
+ zoomIn: () => void;
53
+ zoomOut: () => void;
54
+ rotateLeft: () => void;
55
+ rotateRight: () => void;
56
+ resetTransform: () => void;
57
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
58
+ switch: (index: number) => void;
59
+ "update:modelValue": (value: boolean) => void;
60
+ close: () => void;
61
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
62
+ readonly modelValue: {
63
+ readonly type: BooleanConstructor;
64
+ readonly default: false;
65
+ };
66
+ readonly urlList: {
67
+ readonly type: import('vue').PropType<string[]>;
68
+ readonly default: () => never[];
69
+ };
70
+ readonly initialIndex: {
71
+ readonly type: NumberConstructor;
72
+ readonly default: 0;
73
+ };
74
+ readonly zIndex: {
75
+ readonly type: NumberConstructor;
76
+ readonly default: 2000;
77
+ };
78
+ readonly infinite: {
79
+ readonly type: BooleanConstructor;
80
+ readonly default: true;
81
+ };
82
+ readonly teleportTo: {
83
+ readonly type: import('vue').PropType<string | HTMLElement>;
84
+ readonly default: "body";
85
+ };
86
+ readonly type: {
87
+ readonly type: import('vue').PropType<"default" | "primary" | "success" | "warning" | "error" | "info">;
88
+ readonly default: "primary";
89
+ };
90
+ readonly color: {
91
+ readonly type: StringConstructor;
92
+ readonly default: "";
93
+ };
94
+ readonly download: {
95
+ readonly type: BooleanConstructor;
96
+ readonly default: false;
97
+ };
98
+ }>> & Readonly<{
99
+ onSwitch?: ((index: number) => any) | undefined;
100
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
101
+ onClose?: (() => any) | undefined;
102
+ }>, {
103
+ readonly type: "primary" | "success" | "warning" | "error" | "info" | "default";
104
+ readonly color: string;
105
+ readonly modelValue: boolean;
106
+ readonly infinite: boolean;
107
+ readonly zIndex: number;
108
+ readonly initialIndex: number;
109
+ readonly download: boolean;
110
+ readonly urlList: string[];
111
+ readonly teleportTo: string | HTMLElement;
112
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
113
+ export default CpImagePreview;
114
+ export * from './src/image-preview';
115
+ export type { CpImagePreviewInstance } from './src/instance';
116
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../image-preview/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAA4B,CAAA;AAEvD,eAAe,cAAc,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,99 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ /**
3
+ * CpImagePreview 组件 Props 定义
4
+ *
5
+ * @description 赛博朋克风格全屏大图预览组件,支持缩放、旋转、多图切换。
6
+ *
7
+ * @example
8
+ * ```vue
9
+ * <CpImagePreview v-model="visible" :url-list="urls" />
10
+ * ```
11
+ */
12
+ export declare const imagePreviewProps: {
13
+ /**
14
+ * 是否显示预览 (v-model)
15
+ * @default false
16
+ */
17
+ readonly modelValue: {
18
+ readonly type: BooleanConstructor;
19
+ readonly default: false;
20
+ };
21
+ /**
22
+ * 预览图片列表
23
+ * @default []
24
+ */
25
+ readonly urlList: {
26
+ readonly type: PropType<string[]>;
27
+ readonly default: () => never[];
28
+ };
29
+ /**
30
+ * 初始显示的图片索引
31
+ * @default 0
32
+ */
33
+ readonly initialIndex: {
34
+ readonly type: NumberConstructor;
35
+ readonly default: 0;
36
+ };
37
+ /**
38
+ * z-index 层级
39
+ * @default 2000
40
+ */
41
+ readonly zIndex: {
42
+ readonly type: NumberConstructor;
43
+ readonly default: 2000;
44
+ };
45
+ /**
46
+ * 是否支持循环切换(到最后一张后跳回第一张)
47
+ * @default true
48
+ */
49
+ readonly infinite: {
50
+ readonly type: BooleanConstructor;
51
+ readonly default: true;
52
+ };
53
+ /**
54
+ * Teleport 目标
55
+ * @default 'body'
56
+ */
57
+ readonly teleportTo: {
58
+ readonly type: PropType<string | HTMLElement>;
59
+ readonly default: "body";
60
+ };
61
+ /**
62
+ * 主题颜色类型
63
+ * @default 'primary'
64
+ */
65
+ readonly type: {
66
+ readonly type: PropType<"default" | "primary" | "success" | "warning" | "error" | "info">;
67
+ readonly default: "primary";
68
+ };
69
+ /**
70
+ * 自定义外发光及部分元素的颜色
71
+ * @default ''
72
+ */
73
+ readonly color: {
74
+ readonly type: StringConstructor;
75
+ readonly default: "";
76
+ };
77
+ /**
78
+ * 是否允许下载图片,开启后工具栏会显示下载按钮
79
+ * @default false
80
+ */
81
+ readonly download: {
82
+ readonly type: BooleanConstructor;
83
+ readonly default: false;
84
+ };
85
+ };
86
+ export type ImagePreviewProps = ExtractPropTypes<typeof imagePreviewProps>;
87
+ /**
88
+ * CpImagePreview 组件事件定义
89
+ */
90
+ export declare const imagePreviewEmits: {
91
+ /** v-model 绑定 */
92
+ 'update:modelValue': (value: boolean) => boolean;
93
+ /** 关闭时触发 */
94
+ close: () => boolean;
95
+ /** 切换图片时触发 */
96
+ switch: (index: number) => boolean;
97
+ };
98
+ export type ImagePreviewEmits = typeof imagePreviewEmits;
99
+ //# sourceMappingURL=image-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-preview.d.ts","sourceRoot":"","sources":["../../../image-preview/src/image-preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAErD;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB;IAC1B;;;OAGG;;;;;IAKH;;;OAGG;;uBAEgB,QAAQ,CAAC,MAAM,EAAE,CAAC;;;IAGrC;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;uBAE2B,QAAQ,CAAC,MAAM,GAAG,WAAW,CAAC;;;IAG5D;;;OAGG;;uBAEiB,QAAQ,CAAC,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;;;IAG9F;;;OAGG;;;;;IAKH;;;OAGG;;;;;CAKG,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE1E;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC1B,iBAAiB;iCACY,OAAO;IACpC,YAAY;;IAEZ,cAAc;oBACE,MAAM;CACzB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA"}
@@ -0,0 +1,112 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ readonly modelValue: {
3
+ readonly type: BooleanConstructor;
4
+ readonly default: false;
5
+ };
6
+ readonly urlList: {
7
+ readonly type: import('vue').PropType<string[]>;
8
+ readonly default: () => never[];
9
+ };
10
+ readonly initialIndex: {
11
+ readonly type: NumberConstructor;
12
+ readonly default: 0;
13
+ };
14
+ readonly zIndex: {
15
+ readonly type: NumberConstructor;
16
+ readonly default: 2000;
17
+ };
18
+ readonly infinite: {
19
+ readonly type: BooleanConstructor;
20
+ readonly default: true;
21
+ };
22
+ readonly teleportTo: {
23
+ readonly type: import('vue').PropType<string | HTMLElement>;
24
+ readonly default: "body";
25
+ };
26
+ readonly type: {
27
+ readonly type: import('vue').PropType<"default" | "primary" | "success" | "warning" | "error" | "info">;
28
+ readonly default: "primary";
29
+ };
30
+ readonly color: {
31
+ readonly type: StringConstructor;
32
+ readonly default: "";
33
+ };
34
+ readonly download: {
35
+ readonly type: BooleanConstructor;
36
+ readonly default: false;
37
+ };
38
+ }>, {
39
+ /** 关闭预览 */
40
+ close: () => void;
41
+ /** 上一张 */
42
+ prev: () => void;
43
+ /** 下一张 */
44
+ next: () => void;
45
+ /** 放大 */
46
+ zoomIn: () => void;
47
+ /** 缩小 */
48
+ zoomOut: () => void;
49
+ /** 左旋 */
50
+ rotateLeft: () => void;
51
+ /** 右旋 */
52
+ rotateRight: () => void;
53
+ /** 还原缩放 & 旋转 */
54
+ resetTransform: () => void;
55
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
+ switch: (index: number) => void;
57
+ "update:modelValue": (value: boolean) => void;
58
+ close: () => void;
59
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
60
+ readonly modelValue: {
61
+ readonly type: BooleanConstructor;
62
+ readonly default: false;
63
+ };
64
+ readonly urlList: {
65
+ readonly type: import('vue').PropType<string[]>;
66
+ readonly default: () => never[];
67
+ };
68
+ readonly initialIndex: {
69
+ readonly type: NumberConstructor;
70
+ readonly default: 0;
71
+ };
72
+ readonly zIndex: {
73
+ readonly type: NumberConstructor;
74
+ readonly default: 2000;
75
+ };
76
+ readonly infinite: {
77
+ readonly type: BooleanConstructor;
78
+ readonly default: true;
79
+ };
80
+ readonly teleportTo: {
81
+ readonly type: import('vue').PropType<string | HTMLElement>;
82
+ readonly default: "body";
83
+ };
84
+ readonly type: {
85
+ readonly type: import('vue').PropType<"default" | "primary" | "success" | "warning" | "error" | "info">;
86
+ readonly default: "primary";
87
+ };
88
+ readonly color: {
89
+ readonly type: StringConstructor;
90
+ readonly default: "";
91
+ };
92
+ readonly download: {
93
+ readonly type: BooleanConstructor;
94
+ readonly default: false;
95
+ };
96
+ }>> & Readonly<{
97
+ onSwitch?: ((index: number) => any) | undefined;
98
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
99
+ onClose?: (() => any) | undefined;
100
+ }>, {
101
+ readonly type: "primary" | "success" | "warning" | "error" | "info" | "default";
102
+ readonly color: string;
103
+ readonly modelValue: boolean;
104
+ readonly infinite: boolean;
105
+ readonly zIndex: number;
106
+ readonly initialIndex: number;
107
+ readonly download: boolean;
108
+ readonly urlList: string[];
109
+ readonly teleportTo: string | HTMLElement;
110
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
111
+ export default _default;
112
+ //# sourceMappingURL=image-preview.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-preview.vue.d.ts","sourceRoot":"","sources":["../../../image-preview/src/image-preview.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAooBI,WAAW;;IAEX,UAAU;;IAEV,UAAU;;IAEV,SAAS;;IAET,SAAS;;IAET,SAAS;;IAET,SAAS;;IAET,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgkBpB,wBASG"}
@@ -0,0 +1,3 @@
1
+ import { default as CpImagePreview } from './image-preview.vue';
2
+ export type CpImagePreviewInstance = InstanceType<typeof CpImagePreview> & unknown;
3
+ //# sourceMappingURL=instance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../image-preview/src/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AAErD,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG,OAAO,CAAA"}