giime 0.7.11 → 0.7.12
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.css +63 -66
- package/es/components/src/base/carousel/Carousel.vue.d.ts +1 -0
- package/es/components/src/base/carousel/Carousel.vue2.mjs +1 -1
- package/es/components/src/base/carousel/Carousel.vue2.mjs.map +1 -1
- package/es/components/src/base/carousel/index.d.ts +3 -0
- package/es/components/src/composite/fileComponent/FileComponent.vue.d.ts +38 -2
- package/es/components/src/composite/fileComponent/FileComponent.vue2.mjs +47 -28
- package/es/components/src/composite/fileComponent/FileComponent.vue2.mjs.map +1 -1
- package/es/components/src/composite/fileComponent/fileComponent.d.ts +12 -0
- package/es/components/src/composite/fileComponent/fileComponent.mjs +12 -0
- package/es/components/src/composite/fileComponent/fileComponent.mjs.map +1 -1
- package/es/components/src/composite/fileComponent/index.d.ts +187 -28
- package/es/components/src/composite/fileList2/FileList.vue.d.ts +68 -5
- package/es/components/src/composite/fileList2/FileList.vue2.mjs +54 -23
- package/es/components/src/composite/fileList2/FileList.vue2.mjs.map +1 -1
- package/es/components/src/composite/fileList2/fileList.d.ts +25 -1
- package/es/components/src/composite/fileList2/fileList.mjs +16 -0
- package/es/components/src/composite/fileList2/fileList.mjs.map +1 -1
- package/es/components/src/composite/fileList2/index.d.ts +269 -33
- package/es/components/src/composite/previewFile/PreviewFile.vue.d.ts +39 -3
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs +5 -4
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs.map +1 -1
- package/es/components/src/composite/previewFile/index.d.ts +39 -3
- package/es/components/src/composite/previewFile/previewFile.d.ts +18 -1
- package/es/components/src/composite/previewFile/previewFile.mjs +6 -1
- package/es/components/src/composite/previewFile/previewFile.mjs.map +1 -1
- package/es/components/src/composite/uploadFile/UploadFile.vue.d.ts +45 -0
- package/es/components/src/composite/uploadFile/index.d.ts +95 -0
- package/es/components/src/composite/uploadFile/uploadFile.d.ts +21 -1
- package/es/giime/version.d.ts +1 -1
- package/es/giime/version.mjs +1 -1
- package/es/giime/version.mjs.map +1 -1
- package/es/index.css +63 -66
- package/lib/components/src/base/carousel/Carousel.vue.d.ts +1 -0
- package/lib/components/src/base/carousel/Carousel.vue2.js +1 -1
- package/lib/components/src/base/carousel/Carousel.vue2.js.map +1 -1
- package/lib/components/src/base/carousel/index.d.ts +3 -0
- package/lib/components/src/composite/fileComponent/FileComponent.vue.d.ts +38 -2
- package/lib/components/src/composite/fileComponent/FileComponent.vue2.js +46 -27
- package/lib/components/src/composite/fileComponent/FileComponent.vue2.js.map +1 -1
- package/lib/components/src/composite/fileComponent/fileComponent.d.ts +12 -0
- package/lib/components/src/composite/fileComponent/fileComponent.js +12 -0
- package/lib/components/src/composite/fileComponent/fileComponent.js.map +1 -1
- package/lib/components/src/composite/fileComponent/index.d.ts +187 -28
- package/lib/components/src/composite/fileList2/FileList.vue.d.ts +68 -5
- package/lib/components/src/composite/fileList2/FileList.vue2.js +53 -22
- package/lib/components/src/composite/fileList2/FileList.vue2.js.map +1 -1
- package/lib/components/src/composite/fileList2/fileList.d.ts +25 -1
- package/lib/components/src/composite/fileList2/fileList.js +16 -0
- package/lib/components/src/composite/fileList2/fileList.js.map +1 -1
- package/lib/components/src/composite/fileList2/index.d.ts +269 -33
- package/lib/components/src/composite/previewFile/PreviewFile.vue.d.ts +39 -3
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js +4 -3
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js.map +1 -1
- package/lib/components/src/composite/previewFile/index.d.ts +39 -3
- package/lib/components/src/composite/previewFile/previewFile.d.ts +18 -1
- package/lib/components/src/composite/previewFile/previewFile.js +6 -1
- package/lib/components/src/composite/previewFile/previewFile.js.map +1 -1
- package/lib/components/src/composite/uploadFile/UploadFile.vue.d.ts +45 -0
- package/lib/components/src/composite/uploadFile/index.d.ts +95 -0
- package/lib/components/src/composite/uploadFile/uploadFile.d.ts +21 -1
- package/lib/giime/version.d.ts +1 -1
- package/lib/giime/version.js +1 -1
- package/lib/giime/version.js.map +1 -1
- package/lib/index.css +63 -66
- package/package.json +1 -1
|
@@ -1,5 +1,246 @@
|
|
|
1
1
|
import FileList from './FileList.vue';
|
|
2
|
-
export declare const GmFileList: import("../../../../utils").SFCWithInstall<
|
|
2
|
+
export declare const GmFileList: import("../../../../utils").SFCWithInstall<{
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
fileList: {
|
|
5
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
controlslist: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
oncontextmenu: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
fileWidth: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
fileHeight: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
fileListGap: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
fileListStyle: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
default: () => {};
|
|
31
|
+
};
|
|
32
|
+
previewWidth: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
openPreviewDownload: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
file: {
|
|
41
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
42
|
+
default: () => {};
|
|
43
|
+
};
|
|
44
|
+
url: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
fileStyle: {
|
|
49
|
+
type: ObjectConstructor;
|
|
50
|
+
default: () => {};
|
|
51
|
+
};
|
|
52
|
+
size: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
field: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
controls: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
showIcon: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
+
fileList: {
|
|
70
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
71
|
+
default: () => never[];
|
|
72
|
+
};
|
|
73
|
+
controlslist: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
oncontextmenu: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
fileWidth: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
fileHeight: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
fileListGap: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
fileListStyle: {
|
|
94
|
+
type: ObjectConstructor;
|
|
95
|
+
default: () => {};
|
|
96
|
+
};
|
|
97
|
+
previewWidth: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
openPreviewDownload: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
file: {
|
|
106
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
107
|
+
default: () => {};
|
|
108
|
+
};
|
|
109
|
+
url: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
fileStyle: {
|
|
114
|
+
type: ObjectConstructor;
|
|
115
|
+
default: () => {};
|
|
116
|
+
};
|
|
117
|
+
size: {
|
|
118
|
+
type: NumberConstructor;
|
|
119
|
+
default: number;
|
|
120
|
+
};
|
|
121
|
+
field: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
controls: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
showIcon: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
}>>, {
|
|
134
|
+
size: number;
|
|
135
|
+
url: string;
|
|
136
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
137
|
+
showIcon: boolean;
|
|
138
|
+
controls: boolean;
|
|
139
|
+
fileList: Partial<import("element-plus").UploadFile>[];
|
|
140
|
+
field: string;
|
|
141
|
+
fileWidth: string;
|
|
142
|
+
fileHeight: string;
|
|
143
|
+
fileStyle: Record<string, any>;
|
|
144
|
+
controlslist: string;
|
|
145
|
+
oncontextmenu: boolean;
|
|
146
|
+
previewWidth: string;
|
|
147
|
+
openPreviewDownload: boolean;
|
|
148
|
+
fileListGap: string;
|
|
149
|
+
fileListStyle: Record<string, any>;
|
|
150
|
+
}, true, {}, {}, {
|
|
151
|
+
P: {};
|
|
152
|
+
B: {};
|
|
153
|
+
D: {};
|
|
154
|
+
C: {};
|
|
155
|
+
M: {};
|
|
156
|
+
Defaults: {};
|
|
157
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
158
|
+
fileList: {
|
|
159
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
160
|
+
default: () => never[];
|
|
161
|
+
};
|
|
162
|
+
controlslist: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
oncontextmenu: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
170
|
+
fileWidth: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
default: string;
|
|
173
|
+
};
|
|
174
|
+
fileHeight: {
|
|
175
|
+
type: StringConstructor;
|
|
176
|
+
default: string;
|
|
177
|
+
};
|
|
178
|
+
fileListGap: {
|
|
179
|
+
type: StringConstructor;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
182
|
+
fileListStyle: {
|
|
183
|
+
type: ObjectConstructor;
|
|
184
|
+
default: () => {};
|
|
185
|
+
};
|
|
186
|
+
previewWidth: {
|
|
187
|
+
type: StringConstructor;
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
|
+
openPreviewDownload: {
|
|
191
|
+
type: BooleanConstructor;
|
|
192
|
+
default: boolean;
|
|
193
|
+
};
|
|
194
|
+
file: {
|
|
195
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
196
|
+
default: () => {};
|
|
197
|
+
};
|
|
198
|
+
url: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: string;
|
|
201
|
+
};
|
|
202
|
+
fileStyle: {
|
|
203
|
+
type: ObjectConstructor;
|
|
204
|
+
default: () => {};
|
|
205
|
+
};
|
|
206
|
+
size: {
|
|
207
|
+
type: NumberConstructor;
|
|
208
|
+
default: number;
|
|
209
|
+
};
|
|
210
|
+
field: {
|
|
211
|
+
type: StringConstructor;
|
|
212
|
+
default: string;
|
|
213
|
+
};
|
|
214
|
+
controls: {
|
|
215
|
+
type: BooleanConstructor;
|
|
216
|
+
default: boolean;
|
|
217
|
+
};
|
|
218
|
+
showIcon: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
default: boolean;
|
|
221
|
+
};
|
|
222
|
+
}>>, {}, {}, {}, {}, {
|
|
223
|
+
size: number;
|
|
224
|
+
url: string;
|
|
225
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
226
|
+
showIcon: boolean;
|
|
227
|
+
controls: boolean;
|
|
228
|
+
fileList: Partial<import("element-plus").UploadFile>[];
|
|
229
|
+
field: string;
|
|
230
|
+
fileWidth: string;
|
|
231
|
+
fileHeight: string;
|
|
232
|
+
fileStyle: Record<string, any>;
|
|
233
|
+
controlslist: string;
|
|
234
|
+
oncontextmenu: boolean;
|
|
235
|
+
previewWidth: string;
|
|
236
|
+
openPreviewDownload: boolean;
|
|
237
|
+
fileListGap: string;
|
|
238
|
+
fileListStyle: Record<string, any>;
|
|
239
|
+
}>;
|
|
240
|
+
__isFragment?: undefined;
|
|
241
|
+
__isTeleport?: undefined;
|
|
242
|
+
__isSuspense?: undefined;
|
|
243
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
3
244
|
fileList: {
|
|
4
245
|
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
5
246
|
default: () => never[];
|
|
@@ -12,51 +253,30 @@ export declare const GmFileList: import("../../../../utils").SFCWithInstall<impo
|
|
|
12
253
|
type: BooleanConstructor;
|
|
13
254
|
default: boolean;
|
|
14
255
|
};
|
|
15
|
-
|
|
256
|
+
fileWidth: {
|
|
16
257
|
type: StringConstructor;
|
|
17
258
|
default: string;
|
|
18
259
|
};
|
|
19
|
-
|
|
20
|
-
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
21
|
-
default: () => {};
|
|
22
|
-
};
|
|
23
|
-
url: {
|
|
260
|
+
fileHeight: {
|
|
24
261
|
type: StringConstructor;
|
|
25
262
|
default: string;
|
|
26
263
|
};
|
|
27
|
-
|
|
28
|
-
type: NumberConstructor;
|
|
29
|
-
default: number;
|
|
30
|
-
};
|
|
31
|
-
field: {
|
|
264
|
+
fileListGap: {
|
|
32
265
|
type: StringConstructor;
|
|
33
266
|
default: string;
|
|
34
267
|
};
|
|
35
|
-
|
|
36
|
-
type:
|
|
37
|
-
default:
|
|
38
|
-
};
|
|
39
|
-
showIcon: {
|
|
40
|
-
type: BooleanConstructor;
|
|
41
|
-
default: boolean;
|
|
42
|
-
};
|
|
43
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
-
fileList: {
|
|
45
|
-
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
46
|
-
default: () => never[];
|
|
268
|
+
fileListStyle: {
|
|
269
|
+
type: ObjectConstructor;
|
|
270
|
+
default: () => {};
|
|
47
271
|
};
|
|
48
|
-
|
|
272
|
+
previewWidth: {
|
|
49
273
|
type: StringConstructor;
|
|
50
274
|
default: string;
|
|
51
275
|
};
|
|
52
|
-
|
|
276
|
+
openPreviewDownload: {
|
|
53
277
|
type: BooleanConstructor;
|
|
54
278
|
default: boolean;
|
|
55
279
|
};
|
|
56
|
-
width: {
|
|
57
|
-
type: StringConstructor;
|
|
58
|
-
default: string;
|
|
59
|
-
};
|
|
60
280
|
file: {
|
|
61
281
|
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
62
282
|
default: () => {};
|
|
@@ -65,6 +285,10 @@ export declare const GmFileList: import("../../../../utils").SFCWithInstall<impo
|
|
|
65
285
|
type: StringConstructor;
|
|
66
286
|
default: string;
|
|
67
287
|
};
|
|
288
|
+
fileStyle: {
|
|
289
|
+
type: ObjectConstructor;
|
|
290
|
+
default: () => {};
|
|
291
|
+
};
|
|
68
292
|
size: {
|
|
69
293
|
type: NumberConstructor;
|
|
70
294
|
default: number;
|
|
@@ -81,18 +305,30 @@ export declare const GmFileList: import("../../../../utils").SFCWithInstall<impo
|
|
|
81
305
|
type: BooleanConstructor;
|
|
82
306
|
default: boolean;
|
|
83
307
|
};
|
|
84
|
-
}>>, {
|
|
308
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
85
309
|
size: number;
|
|
86
310
|
url: string;
|
|
87
|
-
width: string;
|
|
88
311
|
file: Partial<import("element-plus").UploadFile>;
|
|
89
312
|
showIcon: boolean;
|
|
90
313
|
controls: boolean;
|
|
91
314
|
fileList: Partial<import("element-plus").UploadFile>[];
|
|
92
315
|
field: string;
|
|
316
|
+
fileWidth: string;
|
|
317
|
+
fileHeight: string;
|
|
318
|
+
fileStyle: Record<string, any>;
|
|
93
319
|
controlslist: string;
|
|
94
320
|
oncontextmenu: boolean;
|
|
95
|
-
|
|
321
|
+
previewWidth: string;
|
|
322
|
+
openPreviewDownload: boolean;
|
|
323
|
+
fileListGap: string;
|
|
324
|
+
fileListStyle: Record<string, any>;
|
|
325
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
326
|
+
$slots: {
|
|
327
|
+
default?(_: {
|
|
328
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
329
|
+
}): any;
|
|
330
|
+
};
|
|
331
|
+
})> & Record<string, any>;
|
|
96
332
|
export type FileListInstance = InstanceType<typeof FileList>;
|
|
97
333
|
export * from './fileList';
|
|
98
334
|
export default GmFileList;
|
|
@@ -6,10 +6,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
type: import("vue").PropType<Partial<UploadFile>[]>;
|
|
7
7
|
default: () => never[];
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
previewWidth: {
|
|
10
10
|
type: StringConstructor;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
|
+
openPreviewDownload: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
13
17
|
file: {
|
|
14
18
|
type: import("vue").PropType<Partial<UploadFile>>;
|
|
15
19
|
default: () => {};
|
|
@@ -18,6 +22,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
22
|
type: StringConstructor;
|
|
19
23
|
default: string;
|
|
20
24
|
};
|
|
25
|
+
fileWidth: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
fileHeight: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
fileStyle: {
|
|
34
|
+
type: ObjectConstructor;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
21
37
|
size: {
|
|
22
38
|
type: NumberConstructor;
|
|
23
39
|
default: number;
|
|
@@ -52,10 +68,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
68
|
type: import("vue").PropType<Partial<UploadFile>[]>;
|
|
53
69
|
default: () => never[];
|
|
54
70
|
};
|
|
55
|
-
|
|
71
|
+
previewWidth: {
|
|
56
72
|
type: StringConstructor;
|
|
57
73
|
default: string;
|
|
58
74
|
};
|
|
75
|
+
openPreviewDownload: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
59
79
|
file: {
|
|
60
80
|
type: import("vue").PropType<Partial<UploadFile>>;
|
|
61
81
|
default: () => {};
|
|
@@ -64,6 +84,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
84
|
type: StringConstructor;
|
|
65
85
|
default: string;
|
|
66
86
|
};
|
|
87
|
+
fileWidth: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
fileHeight: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
fileStyle: {
|
|
96
|
+
type: ObjectConstructor;
|
|
97
|
+
default: () => {};
|
|
98
|
+
};
|
|
67
99
|
size: {
|
|
68
100
|
type: NumberConstructor;
|
|
69
101
|
default: number;
|
|
@@ -94,13 +126,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
94
126
|
}, {
|
|
95
127
|
size: number;
|
|
96
128
|
url: string;
|
|
97
|
-
width: string;
|
|
98
129
|
file: Partial<UploadFile>;
|
|
99
130
|
showIcon: boolean;
|
|
100
131
|
controls: boolean;
|
|
101
132
|
fileList: Partial<UploadFile>[];
|
|
102
133
|
field: string;
|
|
134
|
+
fileWidth: string;
|
|
135
|
+
fileHeight: string;
|
|
136
|
+
fileStyle: Record<string, any>;
|
|
103
137
|
controlslist: string;
|
|
104
138
|
oncontextmenu: boolean;
|
|
139
|
+
previewWidth: string;
|
|
140
|
+
openPreviewDownload: boolean;
|
|
105
141
|
}, {}>;
|
|
106
142
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementVNode, defineComponent, mergeModels, useModel, computed, resolveComponent, openBlock, createBlock, withCtx,
|
|
1
|
+
import { createElementVNode, defineComponent, mergeModels, useModel, computed, resolveComponent, openBlock, createBlock, withCtx, createTextVNode, createCommentVNode, createElementBlock, createVNode, unref, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
2
|
import { ElMessage } from 'element-plus';
|
|
3
3
|
import { useDownload } from '../../../../hooks/base/useDownload/index.mjs';
|
|
4
4
|
import { ArrowLeftBold, ArrowRightBold } from '@element-plus/icons-vue';
|
|
@@ -81,7 +81,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
modelValue: dialogVisible.value,
|
|
82
82
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
|
|
83
83
|
title: "\u9884\u89C8",
|
|
84
|
-
width: _ctx.
|
|
84
|
+
width: _ctx.previewWidth,
|
|
85
85
|
top: "10vh",
|
|
86
86
|
"append-to-body": "",
|
|
87
87
|
"destroy-on-close": ""
|
|
@@ -89,7 +89,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
89
|
header: withCtx(() => [
|
|
90
90
|
createElementVNode("div", _hoisted_1, [
|
|
91
91
|
_hoisted_2,
|
|
92
|
-
|
|
92
|
+
_ctx.openPreviewDownload ? (openBlock(), createBlock(_component_el_button, {
|
|
93
|
+
key: 0,
|
|
93
94
|
type: "primary",
|
|
94
95
|
size: "default",
|
|
95
96
|
link: "",
|
|
@@ -100,7 +101,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
101
|
]),
|
|
101
102
|
_: 1
|
|
102
103
|
/* STABLE */
|
|
103
|
-
})
|
|
104
|
+
})) : createCommentVNode("v-if", true)
|
|
104
105
|
])
|
|
105
106
|
]),
|
|
106
107
|
default: withCtx(() => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreviewFile.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/previewFile/PreviewFile.vue"],"sourcesContent":["<template>\n <el-dialog v-model=\"dialogVisible\" title=\"预览\" :width=\"
|
|
1
|
+
{"version":3,"file":"PreviewFile.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/previewFile/PreviewFile.vue"],"sourcesContent":["<template>\n <el-dialog v-model=\"dialogVisible\" title=\"预览\" :width=\"previewWidth\" top=\"10vh\" append-to-body destroy-on-close>\n <template #header>\n <div class=\"gm-flex gm-items-center gm-justify-between\">\n <span>预览</span>\n <el-button v-if=\"openPreviewDownload\" type=\"primary\" size=\"default\" link @click=\"download\">下载</el-button>\n </div>\n </template>\n <div class=\"gm-flex gm-select-none gm-items-center gm-justify-center gm-gap-4\">\n <div v-if=\"files.length > 1\" class=\"gm-cursor-pointer\" @click=\"prev\">\n <el-icon :size=\"40\"><ArrowLeftBold /></el-icon>\n </div>\n <div class=\"gm-flex gm-flex-1 gm-items-center gm-justify-center\" style=\"height: calc(80vh - 72px)\">\n <GmFileComponent v-bind=\"fileProps\" />\n </div>\n <div v-if=\"files.length > 1\" class=\"gm-cursor-pointer\" @click=\"next\">\n <el-icon :size=\"40\"><ArrowRightBold /></el-icon>\n </div>\n </div>\n </el-dialog>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { ElMessage } from 'element-plus';\nimport { useDownload } from '@giime/hooks/base/useDownload';\nimport { ArrowLeftBold, ArrowRightBold } from '@element-plus/icons-vue';\nimport GmFileComponent from '../fileComponent';\nimport { previewFileProps } from './previewFile';\nimport type { UploadFile } from 'element-plus';\n\ndefineOptions({\n name: 'GmPreviewFile',\n});\n\nconst props = defineProps(previewFileProps);\nconst dialogVisible = defineModel<boolean>('dialogVisible', { default: false });\nconst fileIndex = defineModel<number>('fileIndex', { default: 0 });\n\nconst downloadMethod = useDownload();\n\nconst files = computed(() => {\n let result: Partial<UploadFile>[] = props.fileList;\n if (props.fileList && !props.fileList.length && props.file) {\n result = [props.file];\n }\n return result;\n});\n\nconst fileProps = computed(() => {\n const file = files.value[fileIndex.value];\n return {\n file,\n controls: props.controls,\n oncontextmenu: props.oncontextmenu,\n controlslist: props.controlslist,\n field: props.field,\n url: props.url,\n size: props.size,\n };\n});\n\nconst prev = () => {\n if (fileIndex.value > 0) {\n fileIndex.value--;\n return;\n }\n ElMessage.warning('已经是第一张了');\n};\n\nconst next = () => {\n if (fileIndex.value < props.fileList.length - 1) {\n fileIndex.value++;\n return;\n }\n ElMessage.warning('没有更多了!');\n};\n\nconst download = () => {\n const file = files.value[fileIndex.value];\n const url = (file[props.url as keyof UploadFile] || file.url || '') as string;\n downloadMethod.downloadByUrl(url, { filename: file.name });\n};\n</script>\n"],"names":["_useModel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAM,MAAA,aAAA,GAAgBA,QAAqB,CAAA,OAAA,EAAA,eAAmC,CAAA,CAAA;AAC9E,IAAM,MAAA,SAAA,GAAYA,QAAmB,CAAA,OAAA,EAAC,WAA2B,CAAA,CAAA;AAEjE,IAAA,MAAM,iBAAiB,WAAY,EAAA,CAAA;AAEnC,IAAM,MAAA,KAAA,GAAQ,SAAS,MAAM;AAC3B,MAAA,IAAI,SAAgC,KAAM,CAAA,QAAA,CAAA;AAC1C,MAAA,IAAI,MAAM,QAAY,IAAA,CAAC,MAAM,QAAS,CAAA,MAAA,IAAU,MAAM,IAAM,EAAA;AAC1D,QAAS,MAAA,GAAA,CAAC,MAAM,IAAI,CAAA,CAAA;AAAA,OACtB;AACA,MAAO,OAAA,MAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAA,MAAM,IAAO,GAAA,KAAA,CAAM,KAAM,CAAA,SAAA,CAAU,KAAK,CAAA,CAAA;AACxC,MAAO,OAAA;AAAA,QACL,IAAA;AAAA,QACA,UAAU,KAAM,CAAA,QAAA;AAAA,QAChB,eAAe,KAAM,CAAA,aAAA;AAAA,QACrB,cAAc,KAAM,CAAA,YAAA;AAAA,QACpB,OAAO,KAAM,CAAA,KAAA;AAAA,QACb,KAAK,KAAM,CAAA,GAAA;AAAA,QACX,MAAM,KAAM,CAAA,IAAA;AAAA,OACd,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAA,MAAM,OAAO,MAAM;AACjB,MAAI,IAAA,SAAA,CAAU,QAAQ,CAAG,EAAA;AACvB,QAAU,SAAA,CAAA,KAAA,EAAA,CAAA;AACV,QAAA,OAAA;AAAA,OACF;AACA,MAAA,SAAA,CAAU,QAAQ,4CAAS,CAAA,CAAA;AAAA,KAC7B,CAAA;AAEA,IAAA,MAAM,OAAO,MAAM;AACjB,MAAA,IAAI,SAAU,CAAA,KAAA,GAAQ,KAAM,CAAA,QAAA,CAAS,SAAS,CAAG,EAAA;AAC/C,QAAU,SAAA,CAAA,KAAA,EAAA,CAAA;AACV,QAAA,OAAA;AAAA,OACF;AACA,MAAA,SAAA,CAAU,QAAQ,sCAAQ,CAAA,CAAA;AAAA,KAC5B,CAAA;AAEA,IAAA,MAAM,WAAW,MAAM;AACrB,MAAA,MAAM,IAAO,GAAA,KAAA,CAAM,KAAM,CAAA,SAAA,CAAU,KAAK,CAAA,CAAA;AACxC,MAAA,MAAM,MAAO,IAAK,CAAA,KAAA,CAAM,GAAuB,CAAA,IAAK,KAAK,GAAO,IAAA,EAAA,CAAA;AAChE,MAAA,cAAA,CAAe,cAAc,GAAK,EAAA,EAAE,QAAU,EAAA,IAAA,CAAK,MAAM,CAAA,CAAA;AAAA,KAC3D,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6,10 +6,14 @@ export declare const GmPreviewFile: import("../../../../utils").SFCWithInstall<i
|
|
|
6
6
|
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
7
7
|
default: () => never[];
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
previewWidth: {
|
|
10
10
|
type: StringConstructor;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
|
+
openPreviewDownload: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
13
17
|
file: {
|
|
14
18
|
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
15
19
|
default: () => {};
|
|
@@ -18,6 +22,18 @@ export declare const GmPreviewFile: import("../../../../utils").SFCWithInstall<i
|
|
|
18
22
|
type: StringConstructor;
|
|
19
23
|
default: string;
|
|
20
24
|
};
|
|
25
|
+
fileWidth: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
fileHeight: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
fileStyle: {
|
|
34
|
+
type: ObjectConstructor;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
21
37
|
size: {
|
|
22
38
|
type: NumberConstructor;
|
|
23
39
|
default: number;
|
|
@@ -52,10 +68,14 @@ export declare const GmPreviewFile: import("../../../../utils").SFCWithInstall<i
|
|
|
52
68
|
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
53
69
|
default: () => never[];
|
|
54
70
|
};
|
|
55
|
-
|
|
71
|
+
previewWidth: {
|
|
56
72
|
type: StringConstructor;
|
|
57
73
|
default: string;
|
|
58
74
|
};
|
|
75
|
+
openPreviewDownload: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
59
79
|
file: {
|
|
60
80
|
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
61
81
|
default: () => {};
|
|
@@ -64,6 +84,18 @@ export declare const GmPreviewFile: import("../../../../utils").SFCWithInstall<i
|
|
|
64
84
|
type: StringConstructor;
|
|
65
85
|
default: string;
|
|
66
86
|
};
|
|
87
|
+
fileWidth: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
fileHeight: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
fileStyle: {
|
|
96
|
+
type: ObjectConstructor;
|
|
97
|
+
default: () => {};
|
|
98
|
+
};
|
|
67
99
|
size: {
|
|
68
100
|
type: NumberConstructor;
|
|
69
101
|
default: number;
|
|
@@ -94,14 +126,18 @@ export declare const GmPreviewFile: import("../../../../utils").SFCWithInstall<i
|
|
|
94
126
|
}, {
|
|
95
127
|
size: number;
|
|
96
128
|
url: string;
|
|
97
|
-
width: string;
|
|
98
129
|
file: Partial<import("element-plus").UploadFile>;
|
|
99
130
|
showIcon: boolean;
|
|
100
131
|
controls: boolean;
|
|
101
132
|
fileList: Partial<import("element-plus").UploadFile>[];
|
|
102
133
|
field: string;
|
|
134
|
+
fileWidth: string;
|
|
135
|
+
fileHeight: string;
|
|
136
|
+
fileStyle: Record<string, any>;
|
|
103
137
|
controlslist: string;
|
|
104
138
|
oncontextmenu: boolean;
|
|
139
|
+
previewWidth: string;
|
|
140
|
+
openPreviewDownload: boolean;
|
|
105
141
|
}, {}>> & Record<string, any>;
|
|
106
142
|
export type PreviewFileInstance = InstanceType<typeof PreviewFile>;
|
|
107
143
|
export * from './previewFile';
|
|
@@ -7,10 +7,15 @@ export declare const previewFileProps: {
|
|
|
7
7
|
default: () => never[];
|
|
8
8
|
};
|
|
9
9
|
/** 弹层宽度 */
|
|
10
|
-
|
|
10
|
+
previewWidth: {
|
|
11
11
|
type: StringConstructor;
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
|
+
/** 允许下载按钮 */
|
|
15
|
+
openPreviewDownload: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
14
19
|
file: {
|
|
15
20
|
type: PropType<Partial<UploadFile>>;
|
|
16
21
|
default: () => {};
|
|
@@ -19,6 +24,18 @@ export declare const previewFileProps: {
|
|
|
19
24
|
type: StringConstructor;
|
|
20
25
|
default: string;
|
|
21
26
|
};
|
|
27
|
+
fileWidth: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
fileHeight: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
fileStyle: {
|
|
36
|
+
type: ObjectConstructor;
|
|
37
|
+
default: () => {};
|
|
38
|
+
};
|
|
22
39
|
size: {
|
|
23
40
|
type: NumberConstructor;
|
|
24
41
|
default: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previewFile.mjs","sources":["../../../../../../../packages/components/src/composite/previewFile/previewFile.ts"],"sourcesContent":["import { fileComponentProps } from '../fileComponent';\nimport type { PropType } from 'vue';\nimport type { UploadFile } from 'element-plus';\n\nexport const previewFileProps = {\n ...fileComponentProps,\n /** 文件列表 */\n fileList: {\n type: Array as PropType<Partial<UploadFile>[]>,\n default: () => [],\n },\n /** 弹层宽度 */\n
|
|
1
|
+
{"version":3,"file":"previewFile.mjs","sources":["../../../../../../../packages/components/src/composite/previewFile/previewFile.ts"],"sourcesContent":["import { fileComponentProps } from '../fileComponent';\nimport type { PropType } from 'vue';\nimport type { UploadFile } from 'element-plus';\n\nexport const previewFileProps = {\n ...fileComponentProps,\n /** 文件列表 */\n fileList: {\n type: Array as PropType<Partial<UploadFile>[]>,\n default: () => [],\n },\n /** 弹层宽度 */\n previewWidth: {\n type: String,\n default: '1000px',\n },\n /** 允许下载按钮 */\n openPreviewDownload: {\n type: Boolean,\n default: true,\n },\n};\n"],"names":[],"mappings":";;;AAIO,MAAM,gBAAmB,GAAA;AAAA,EAC9B,GAAG,kBAAA;AAAA;AAAA,EAEH,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,KAAA;AAAA,IACN,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA;AAAA,EAEA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,QAAA;AAAA,GACX;AAAA;AAAA,EAEA,mBAAqB,EAAA;AAAA,IACnB,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF;;;;"}
|