giime 0.7.10 → 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 +143 -143
- package/es/components/index.mjs +2 -0
- package/es/components/index.mjs.map +1 -1
- 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 +41 -5
- 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 +13 -1
- 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 +190 -31
- package/es/components/src/composite/fileList2/FileList.vue.d.ts +158 -0
- package/es/components/src/composite/fileList2/FileList.vue.mjs +6 -0
- package/es/components/src/composite/fileList2/FileList.vue.mjs.map +1 -0
- package/es/components/src/composite/fileList2/FileList.vue2.mjs +93 -0
- package/es/components/src/composite/fileList2/FileList.vue2.mjs.map +1 -0
- package/es/components/src/composite/fileList2/fileList.d.ts +71 -0
- package/es/components/src/composite/fileList2/fileList.mjs +40 -0
- package/es/components/src/composite/fileList2/fileList.mjs.map +1 -0
- package/es/components/src/composite/fileList2/index.d.ts +334 -0
- package/es/components/src/composite/fileList2/index.mjs +10 -0
- package/es/components/src/composite/fileList2/index.mjs.map +1 -0
- package/es/components/src/composite/index.d.ts +1 -0
- package/es/components/src/composite/index.mjs +2 -0
- package/es/components/src/composite/index.mjs.map +1 -1
- package/es/components/src/composite/previewFile/PreviewFile.vue.d.ts +42 -6
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs +8 -6
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs.map +1 -1
- package/es/components/src/composite/previewFile/index.d.ts +42 -6
- package/es/components/src/composite/previewFile/previewFile.d.ts +19 -2
- 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 +48 -3
- package/es/components/src/composite/uploadFile/index.d.ts +102 -7
- package/es/components/src/composite/uploadFile/uploadFile.d.ts +22 -2
- package/es/giime/component.mjs +4 -0
- package/es/giime/component.mjs.map +1 -1
- package/es/giime/index.mjs +2 -0
- package/es/giime/index.mjs.map +1 -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 +143 -143
- package/global.d.ts +2 -0
- package/lib/components/index.js +18 -14
- package/lib/components/index.js.map +1 -1
- 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 +41 -5
- 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 +13 -1
- 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 +190 -31
- package/lib/components/src/composite/fileList2/FileList.vue.d.ts +158 -0
- package/lib/components/src/composite/fileList2/FileList.vue.js +10 -0
- package/lib/components/src/composite/fileList2/FileList.vue.js.map +1 -0
- package/lib/components/src/composite/fileList2/FileList.vue2.js +97 -0
- package/lib/components/src/composite/fileList2/FileList.vue2.js.map +1 -0
- package/lib/components/src/composite/fileList2/fileList.d.ts +71 -0
- package/lib/components/src/composite/fileList2/fileList.js +42 -0
- package/lib/components/src/composite/fileList2/fileList.js.map +1 -0
- package/lib/components/src/composite/fileList2/index.d.ts +334 -0
- package/lib/components/src/composite/fileList2/index.js +16 -0
- package/lib/components/src/composite/fileList2/index.js.map +1 -0
- package/lib/components/src/composite/index.d.ts +1 -0
- package/lib/components/src/composite/index.js +4 -0
- package/lib/components/src/composite/index.js.map +1 -1
- package/lib/components/src/composite/previewFile/PreviewFile.vue.d.ts +42 -6
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js +7 -5
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js.map +1 -1
- package/lib/components/src/composite/previewFile/index.d.ts +42 -6
- package/lib/components/src/composite/previewFile/previewFile.d.ts +19 -2
- 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 +48 -3
- package/lib/components/src/composite/uploadFile/index.d.ts +102 -7
- package/lib/components/src/composite/uploadFile/uploadFile.d.ts +22 -2
- package/lib/giime/component.js +32 -28
- package/lib/giime/component.js.map +1 -1
- package/lib/giime/index.js +80 -76
- package/lib/giime/index.js.map +1 -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 +143 -143
- package/package.json +1 -1
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import FileList from './FileList.vue';
|
|
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<{
|
|
244
|
+
fileList: {
|
|
245
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
246
|
+
default: () => never[];
|
|
247
|
+
};
|
|
248
|
+
controlslist: {
|
|
249
|
+
type: StringConstructor;
|
|
250
|
+
default: string;
|
|
251
|
+
};
|
|
252
|
+
oncontextmenu: {
|
|
253
|
+
type: BooleanConstructor;
|
|
254
|
+
default: boolean;
|
|
255
|
+
};
|
|
256
|
+
fileWidth: {
|
|
257
|
+
type: StringConstructor;
|
|
258
|
+
default: string;
|
|
259
|
+
};
|
|
260
|
+
fileHeight: {
|
|
261
|
+
type: StringConstructor;
|
|
262
|
+
default: string;
|
|
263
|
+
};
|
|
264
|
+
fileListGap: {
|
|
265
|
+
type: StringConstructor;
|
|
266
|
+
default: string;
|
|
267
|
+
};
|
|
268
|
+
fileListStyle: {
|
|
269
|
+
type: ObjectConstructor;
|
|
270
|
+
default: () => {};
|
|
271
|
+
};
|
|
272
|
+
previewWidth: {
|
|
273
|
+
type: StringConstructor;
|
|
274
|
+
default: string;
|
|
275
|
+
};
|
|
276
|
+
openPreviewDownload: {
|
|
277
|
+
type: BooleanConstructor;
|
|
278
|
+
default: boolean;
|
|
279
|
+
};
|
|
280
|
+
file: {
|
|
281
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
282
|
+
default: () => {};
|
|
283
|
+
};
|
|
284
|
+
url: {
|
|
285
|
+
type: StringConstructor;
|
|
286
|
+
default: string;
|
|
287
|
+
};
|
|
288
|
+
fileStyle: {
|
|
289
|
+
type: ObjectConstructor;
|
|
290
|
+
default: () => {};
|
|
291
|
+
};
|
|
292
|
+
size: {
|
|
293
|
+
type: NumberConstructor;
|
|
294
|
+
default: number;
|
|
295
|
+
};
|
|
296
|
+
field: {
|
|
297
|
+
type: StringConstructor;
|
|
298
|
+
default: string;
|
|
299
|
+
};
|
|
300
|
+
controls: {
|
|
301
|
+
type: BooleanConstructor;
|
|
302
|
+
default: boolean;
|
|
303
|
+
};
|
|
304
|
+
showIcon: {
|
|
305
|
+
type: BooleanConstructor;
|
|
306
|
+
default: boolean;
|
|
307
|
+
};
|
|
308
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
309
|
+
size: number;
|
|
310
|
+
url: string;
|
|
311
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
312
|
+
showIcon: boolean;
|
|
313
|
+
controls: boolean;
|
|
314
|
+
fileList: Partial<import("element-plus").UploadFile>[];
|
|
315
|
+
field: string;
|
|
316
|
+
fileWidth: string;
|
|
317
|
+
fileHeight: string;
|
|
318
|
+
fileStyle: Record<string, any>;
|
|
319
|
+
controlslist: string;
|
|
320
|
+
oncontextmenu: boolean;
|
|
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>;
|
|
332
|
+
export type FileListInstance = InstanceType<typeof FileList>;
|
|
333
|
+
export * from './fileList';
|
|
334
|
+
export default GmFileList;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '../../../../utils/index.mjs';
|
|
2
|
+
import './FileList.vue.mjs';
|
|
3
|
+
export { fileProProps } from './fileList.mjs';
|
|
4
|
+
import { withInstall } from '../../../../utils/src/vue/install.mjs';
|
|
5
|
+
import _sfc_main from './FileList.vue2.mjs';
|
|
6
|
+
|
|
7
|
+
const GmFileList = withInstall(_sfc_main);
|
|
8
|
+
|
|
9
|
+
export { GmFileList, GmFileList as default };
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../packages/components/src/composite/fileList2/index.ts"],"sourcesContent":["import { withInstall } from '@giime/utils';\nimport FileList from './FileList.vue';\n\nexport const GmFileList = withInstall(FileList);\nexport type FileListInstance = InstanceType<typeof FileList>;\nexport * from './fileList';\nexport default GmFileList;\n"],"names":["FileList"],"mappings":";;;;;;AAGa,MAAA,UAAA,GAAa,YAAYA,SAAQ;;;;"}
|
|
@@ -12,6 +12,7 @@ export { GmPreviewFile } from './previewFile/index.mjs';
|
|
|
12
12
|
export { GmTableCustom } from './tableCustom/index.mjs';
|
|
13
13
|
export { GmRuleEditor } from './ruleEditor/index.mjs';
|
|
14
14
|
export { GmUploadFile } from './uploadFile/index.mjs';
|
|
15
|
+
export { GmFileList } from './fileList2/index.mjs';
|
|
15
16
|
export { searchFormEmits, searchFormItemList, searchFormProps } from './searchForm/searchForm.mjs';
|
|
16
17
|
export { searchFormCommonProps } from './searchForm/searchFormItems/common.mjs';
|
|
17
18
|
export { SearchFormInputName, searchFormInputEmits, searchFormInputProps } from './searchForm/searchFormItems/input/searchFormInput.mjs';
|
|
@@ -53,4 +54,5 @@ export { customOperateButtonProps, customOperateProps } from './tableCustom/cust
|
|
|
53
54
|
export { GmCustomOperate } from './tableCustom/customOperate/index.mjs';
|
|
54
55
|
export { ruleEditorEmits, ruleEditorProps } from './ruleEditor/ruleEditor.mjs';
|
|
55
56
|
export { uploadFileProps } from './uploadFile/uploadFile.mjs';
|
|
57
|
+
export { fileProProps } from './fileList2/fileList.mjs';
|
|
56
58
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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,12 +22,24 @@ 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;
|
|
24
40
|
};
|
|
25
41
|
field: {
|
|
26
|
-
type:
|
|
42
|
+
type: StringConstructor;
|
|
27
43
|
default: string;
|
|
28
44
|
};
|
|
29
45
|
controls: {
|
|
@@ -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,12 +84,24 @@ 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;
|
|
70
102
|
};
|
|
71
103
|
field: {
|
|
72
|
-
type:
|
|
104
|
+
type: StringConstructor;
|
|
73
105
|
default: string;
|
|
74
106
|
};
|
|
75
107
|
controls: {
|
|
@@ -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
|
-
field:
|
|
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,9 +1,9 @@
|
|
|
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
|
+
import { useDownload } from '../../../../hooks/base/useDownload/index.mjs';
|
|
3
4
|
import { ArrowLeftBold, ArrowRightBold } from '@element-plus/icons-vue';
|
|
4
5
|
import { GmFileComponent } from '../fileComponent/index.mjs';
|
|
5
6
|
import { previewFileProps } from './previewFile.mjs';
|
|
6
|
-
import { useDownload } from '../../../../hooks/base/useDownload/index.mjs';
|
|
7
7
|
|
|
8
8
|
const _hoisted_1 = { class: "gm-flex gm-items-center gm-justify-between" };
|
|
9
9
|
const _hoisted_2 = /* @__PURE__ */ createElementVNode(
|
|
@@ -70,7 +70,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
70
|
};
|
|
71
71
|
const download = () => {
|
|
72
72
|
const file = files.value[fileIndex.value];
|
|
73
|
-
|
|
73
|
+
const url = file[props.url] || file.url || "";
|
|
74
|
+
downloadMethod.downloadByUrl(url, { filename: file.name });
|
|
74
75
|
};
|
|
75
76
|
return (_ctx, _cache) => {
|
|
76
77
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -80,7 +81,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
81
|
modelValue: dialogVisible.value,
|
|
81
82
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
|
|
82
83
|
title: "\u9884\u89C8",
|
|
83
|
-
width: _ctx.
|
|
84
|
+
width: _ctx.previewWidth,
|
|
84
85
|
top: "10vh",
|
|
85
86
|
"append-to-body": "",
|
|
86
87
|
"destroy-on-close": ""
|
|
@@ -88,7 +89,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88
89
|
header: withCtx(() => [
|
|
89
90
|
createElementVNode("div", _hoisted_1, [
|
|
90
91
|
_hoisted_2,
|
|
91
|
-
|
|
92
|
+
_ctx.openPreviewDownload ? (openBlock(), createBlock(_component_el_button, {
|
|
93
|
+
key: 0,
|
|
92
94
|
type: "primary",
|
|
93
95
|
size: "default",
|
|
94
96
|
link: "",
|
|
@@ -99,7 +101,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
101
|
]),
|
|
100
102
|
_: 1
|
|
101
103
|
/* STABLE */
|
|
102
|
-
})
|
|
104
|
+
})) : createCommentVNode("v-if", true)
|
|
103
105
|
])
|
|
104
106
|
]),
|
|
105
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,12 +22,24 @@ 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;
|
|
24
40
|
};
|
|
25
41
|
field: {
|
|
26
|
-
type:
|
|
42
|
+
type: StringConstructor;
|
|
27
43
|
default: string;
|
|
28
44
|
};
|
|
29
45
|
controls: {
|
|
@@ -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,12 +84,24 @@ 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;
|
|
70
102
|
};
|
|
71
103
|
field: {
|
|
72
|
-
type:
|
|
104
|
+
type: StringConstructor;
|
|
73
105
|
default: string;
|
|
74
106
|
};
|
|
75
107
|
controls: {
|
|
@@ -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
|
-
field:
|
|
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';
|