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.
Files changed (93) hide show
  1. package/dist/index.css +143 -143
  2. package/es/components/index.mjs +2 -0
  3. package/es/components/index.mjs.map +1 -1
  4. package/es/components/src/base/carousel/Carousel.vue.d.ts +1 -0
  5. package/es/components/src/base/carousel/Carousel.vue2.mjs +1 -1
  6. package/es/components/src/base/carousel/Carousel.vue2.mjs.map +1 -1
  7. package/es/components/src/base/carousel/index.d.ts +3 -0
  8. package/es/components/src/composite/fileComponent/FileComponent.vue.d.ts +41 -5
  9. package/es/components/src/composite/fileComponent/FileComponent.vue2.mjs +47 -28
  10. package/es/components/src/composite/fileComponent/FileComponent.vue2.mjs.map +1 -1
  11. package/es/components/src/composite/fileComponent/fileComponent.d.ts +13 -1
  12. package/es/components/src/composite/fileComponent/fileComponent.mjs +12 -0
  13. package/es/components/src/composite/fileComponent/fileComponent.mjs.map +1 -1
  14. package/es/components/src/composite/fileComponent/index.d.ts +190 -31
  15. package/es/components/src/composite/fileList2/FileList.vue.d.ts +158 -0
  16. package/es/components/src/composite/fileList2/FileList.vue.mjs +6 -0
  17. package/es/components/src/composite/fileList2/FileList.vue.mjs.map +1 -0
  18. package/es/components/src/composite/fileList2/FileList.vue2.mjs +93 -0
  19. package/es/components/src/composite/fileList2/FileList.vue2.mjs.map +1 -0
  20. package/es/components/src/composite/fileList2/fileList.d.ts +71 -0
  21. package/es/components/src/composite/fileList2/fileList.mjs +40 -0
  22. package/es/components/src/composite/fileList2/fileList.mjs.map +1 -0
  23. package/es/components/src/composite/fileList2/index.d.ts +334 -0
  24. package/es/components/src/composite/fileList2/index.mjs +10 -0
  25. package/es/components/src/composite/fileList2/index.mjs.map +1 -0
  26. package/es/components/src/composite/index.d.ts +1 -0
  27. package/es/components/src/composite/index.mjs +2 -0
  28. package/es/components/src/composite/index.mjs.map +1 -1
  29. package/es/components/src/composite/previewFile/PreviewFile.vue.d.ts +42 -6
  30. package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs +8 -6
  31. package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs.map +1 -1
  32. package/es/components/src/composite/previewFile/index.d.ts +42 -6
  33. package/es/components/src/composite/previewFile/previewFile.d.ts +19 -2
  34. package/es/components/src/composite/previewFile/previewFile.mjs +6 -1
  35. package/es/components/src/composite/previewFile/previewFile.mjs.map +1 -1
  36. package/es/components/src/composite/uploadFile/UploadFile.vue.d.ts +48 -3
  37. package/es/components/src/composite/uploadFile/index.d.ts +102 -7
  38. package/es/components/src/composite/uploadFile/uploadFile.d.ts +22 -2
  39. package/es/giime/component.mjs +4 -0
  40. package/es/giime/component.mjs.map +1 -1
  41. package/es/giime/index.mjs +2 -0
  42. package/es/giime/index.mjs.map +1 -1
  43. package/es/giime/version.d.ts +1 -1
  44. package/es/giime/version.mjs +1 -1
  45. package/es/giime/version.mjs.map +1 -1
  46. package/es/index.css +143 -143
  47. package/global.d.ts +2 -0
  48. package/lib/components/index.js +18 -14
  49. package/lib/components/index.js.map +1 -1
  50. package/lib/components/src/base/carousel/Carousel.vue.d.ts +1 -0
  51. package/lib/components/src/base/carousel/Carousel.vue2.js +1 -1
  52. package/lib/components/src/base/carousel/Carousel.vue2.js.map +1 -1
  53. package/lib/components/src/base/carousel/index.d.ts +3 -0
  54. package/lib/components/src/composite/fileComponent/FileComponent.vue.d.ts +41 -5
  55. package/lib/components/src/composite/fileComponent/FileComponent.vue2.js +46 -27
  56. package/lib/components/src/composite/fileComponent/FileComponent.vue2.js.map +1 -1
  57. package/lib/components/src/composite/fileComponent/fileComponent.d.ts +13 -1
  58. package/lib/components/src/composite/fileComponent/fileComponent.js +12 -0
  59. package/lib/components/src/composite/fileComponent/fileComponent.js.map +1 -1
  60. package/lib/components/src/composite/fileComponent/index.d.ts +190 -31
  61. package/lib/components/src/composite/fileList2/FileList.vue.d.ts +158 -0
  62. package/lib/components/src/composite/fileList2/FileList.vue.js +10 -0
  63. package/lib/components/src/composite/fileList2/FileList.vue.js.map +1 -0
  64. package/lib/components/src/composite/fileList2/FileList.vue2.js +97 -0
  65. package/lib/components/src/composite/fileList2/FileList.vue2.js.map +1 -0
  66. package/lib/components/src/composite/fileList2/fileList.d.ts +71 -0
  67. package/lib/components/src/composite/fileList2/fileList.js +42 -0
  68. package/lib/components/src/composite/fileList2/fileList.js.map +1 -0
  69. package/lib/components/src/composite/fileList2/index.d.ts +334 -0
  70. package/lib/components/src/composite/fileList2/index.js +16 -0
  71. package/lib/components/src/composite/fileList2/index.js.map +1 -0
  72. package/lib/components/src/composite/index.d.ts +1 -0
  73. package/lib/components/src/composite/index.js +4 -0
  74. package/lib/components/src/composite/index.js.map +1 -1
  75. package/lib/components/src/composite/previewFile/PreviewFile.vue.d.ts +42 -6
  76. package/lib/components/src/composite/previewFile/PreviewFile.vue2.js +7 -5
  77. package/lib/components/src/composite/previewFile/PreviewFile.vue2.js.map +1 -1
  78. package/lib/components/src/composite/previewFile/index.d.ts +42 -6
  79. package/lib/components/src/composite/previewFile/previewFile.d.ts +19 -2
  80. package/lib/components/src/composite/previewFile/previewFile.js +6 -1
  81. package/lib/components/src/composite/previewFile/previewFile.js.map +1 -1
  82. package/lib/components/src/composite/uploadFile/UploadFile.vue.d.ts +48 -3
  83. package/lib/components/src/composite/uploadFile/index.d.ts +102 -7
  84. package/lib/components/src/composite/uploadFile/uploadFile.d.ts +22 -2
  85. package/lib/giime/component.js +32 -28
  86. package/lib/giime/component.js.map +1 -1
  87. package/lib/giime/index.js +80 -76
  88. package/lib/giime/index.js.map +1 -1
  89. package/lib/giime/version.d.ts +1 -1
  90. package/lib/giime/version.js +1 -1
  91. package/lib/giime/version.js.map +1 -1
  92. package/lib/index.css +143 -143
  93. package/package.json +1 -1
@@ -0,0 +1,71 @@
1
+ import type { PropType } from 'vue';
2
+ import type { UploadFile } from 'element-plus';
3
+ export declare const fileProProps: {
4
+ /** 文件列表 */
5
+ fileList: {
6
+ type: PropType<Partial<UploadFile>[]>;
7
+ default: () => never[];
8
+ };
9
+ /** 视频控制器选项 */
10
+ controlslist: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ /** 视频是否显示右键菜单 */
15
+ oncontextmenu: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ fileWidth: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ fileHeight: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ fileListGap: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ fileListStyle: {
32
+ type: ObjectConstructor;
33
+ default: () => {};
34
+ };
35
+ previewWidth: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ }; /** 视频是否显示右键菜单 */
39
+ openPreviewDownload: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ file: {
44
+ type: PropType<Partial<UploadFile>>;
45
+ default: () => {};
46
+ };
47
+ url: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ fileStyle: {
52
+ type: ObjectConstructor;
53
+ default: () => {};
54
+ };
55
+ size: {
56
+ type: NumberConstructor;
57
+ default: number;
58
+ };
59
+ field: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ controls: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ showIcon: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ };
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ require('../previewFile/index.js');
4
+ var previewFile = require('../previewFile/previewFile.js');
5
+
6
+ const fileProProps = {
7
+ ...previewFile.previewFileProps,
8
+ /** 文件列表 */
9
+ fileList: {
10
+ type: Array,
11
+ default: () => []
12
+ },
13
+ /** 视频控制器选项 */
14
+ controlslist: {
15
+ type: String,
16
+ default: "nodownload"
17
+ },
18
+ /** 视频是否显示右键菜单 */
19
+ oncontextmenu: {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ fileWidth: {
24
+ type: String,
25
+ default: "120px"
26
+ },
27
+ fileHeight: {
28
+ type: String,
29
+ default: "120px"
30
+ },
31
+ fileListGap: {
32
+ type: String,
33
+ default: "10px"
34
+ },
35
+ fileListStyle: {
36
+ type: Object,
37
+ default: () => ({})
38
+ }
39
+ };
40
+
41
+ exports.fileProProps = fileProProps;
42
+ //# sourceMappingURL=fileList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileList.js","sources":["../../../../../../../packages/components/src/composite/fileList2/fileList.ts"],"sourcesContent":["import { previewFileProps } from '../previewFile';\nimport type { PropType } from 'vue';\nimport type { UploadFile } from 'element-plus';\n\nexport const fileProProps = {\n ...previewFileProps,\n /** 文件列表 */\n fileList: {\n type: Array as PropType<Partial<UploadFile>[]>,\n default: () => [],\n },\n /** 视频控制器选项 */\n controlslist: {\n type: String,\n default: 'nodownload',\n },\n /** 视频是否显示右键菜单 */\n oncontextmenu: {\n type: Boolean,\n default: false,\n },\n fileWidth: {\n type: String,\n default: '120px',\n },\n fileHeight: {\n type: String,\n default: '120px',\n },\n fileListGap: {\n type: String,\n default: '10px',\n },\n fileListStyle: {\n type: Object,\n default: () => ({}),\n },\n};\n"],"names":["previewFileProps"],"mappings":";;;;;AAIO,MAAM,YAAe,GAAA;AAAA,EAC1B,GAAGA,4BAAA;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,YAAA;AAAA,GACX;AAAA;AAAA,EAEA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,OAAA;AAAA,GACX;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,OAAA;AAAA,GACX;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,MAAA;AAAA,GACX;AAAA,EACA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AACF;;;;"}
@@ -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,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../../../utils/index.js');
6
+ require('./FileList.vue.js');
7
+ var fileList = require('./fileList.js');
8
+ var install = require('../../../../utils/src/vue/install.js');
9
+ var FileList_vue_vue_type_script_setup_true_lang = require('./FileList.vue2.js');
10
+
11
+ const GmFileList = install.withInstall(FileList_vue_vue_type_script_setup_true_lang.default);
12
+
13
+ exports.fileProProps = fileList.fileProProps;
14
+ exports.GmFileList = GmFileList;
15
+ exports.default = GmFileList;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","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":["withInstall","FileList"],"mappings":";;;;;;;;;;AAGa,MAAA,UAAA,GAAaA,oBAAYC,oDAAQ;;;;;;"}
@@ -12,3 +12,4 @@ export * from './previewFile';
12
12
  export * from './tableCustom';
13
13
  export * from './ruleEditor';
14
14
  export * from './uploadFile';
15
+ export * from './fileList2';
@@ -14,6 +14,7 @@ var index$m = require('./previewFile/index.js');
14
14
  var index$n = require('./tableCustom/index.js');
15
15
  var index$q = require('./ruleEditor/index.js');
16
16
  var index$r = require('./uploadFile/index.js');
17
+ var index$s = require('./fileList2/index.js');
17
18
  var searchForm = require('./searchForm/searchForm.js');
18
19
  var common = require('./searchForm/searchFormItems/common.js');
19
20
  var searchFormInput = require('./searchForm/searchFormItems/input/searchFormInput.js');
@@ -55,6 +56,7 @@ var customOperate = require('./tableCustom/customOperate/customOperate.js');
55
56
  var index$p = require('./tableCustom/customOperate/index.js');
56
57
  var ruleEditor = require('./ruleEditor/ruleEditor.js');
57
58
  var uploadFile = require('./uploadFile/uploadFile.js');
59
+ var fileList = require('./fileList2/fileList.js');
58
60
 
59
61
 
60
62
 
@@ -72,6 +74,7 @@ exports.GmPreviewFile = index$m.GmPreviewFile;
72
74
  exports.GmTableCustom = index$n.GmTableCustom;
73
75
  exports.GmRuleEditor = index$q.GmRuleEditor;
74
76
  exports.GmUploadFile = index$r.GmUploadFile;
77
+ exports.GmFileList = index$s.GmFileList;
75
78
  exports.searchFormEmits = searchForm.searchFormEmits;
76
79
  exports.searchFormItemList = searchForm.searchFormItemList;
77
80
  exports.searchFormProps = searchForm.searchFormProps;
@@ -137,4 +140,5 @@ exports.GmCustomOperate = index$p.GmCustomOperate;
137
140
  exports.ruleEditorEmits = ruleEditor.ruleEditorEmits;
138
141
  exports.ruleEditorProps = ruleEditor.ruleEditorProps;
139
142
  exports.uploadFileProps = uploadFile.uploadFileProps;
143
+ exports.fileProProps = fileList.fileProProps;
140
144
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","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
- width: {
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: import("vue").PropType<keyof UploadFile>;
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
- width: {
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: import("vue").PropType<keyof UploadFile>;
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: keyof UploadFile;
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;
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
+ var index = require('../../../../hooks/base/useDownload/index.js');
7
8
  var iconsVue = require('@element-plus/icons-vue');
8
9
  var index$1 = require('../fileComponent/index.js');
9
10
  var previewFile = require('./previewFile.js');
10
- var index = require('../../../../hooks/base/useDownload/index.js');
11
11
 
12
12
  const _hoisted_1 = { class: "gm-flex gm-items-center gm-justify-between" };
13
13
  const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode(
@@ -74,7 +74,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
74
74
  };
75
75
  const download = () => {
76
76
  const file = files.value[fileIndex.value];
77
- downloadMethod.downloadByUrl(file.url || "", { filename: file.name });
77
+ const url = file[props.url] || file.url || "";
78
+ downloadMethod.downloadByUrl(url, { filename: file.name });
78
79
  };
79
80
  return (_ctx, _cache) => {
80
81
  const _component_el_button = vue.resolveComponent("el-button");
@@ -84,7 +85,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
84
85
  modelValue: dialogVisible.value,
85
86
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
86
87
  title: "\u9884\u89C8",
87
- width: _ctx.width,
88
+ width: _ctx.previewWidth,
88
89
  top: "10vh",
89
90
  "append-to-body": "",
90
91
  "destroy-on-close": ""
@@ -92,7 +93,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
92
93
  header: vue.withCtx(() => [
93
94
  vue.createElementVNode("div", _hoisted_1, [
94
95
  _hoisted_2,
95
- vue.createVNode(_component_el_button, {
96
+ _ctx.openPreviewDownload ? (vue.openBlock(), vue.createBlock(_component_el_button, {
97
+ key: 0,
96
98
  type: "primary",
97
99
  size: "default",
98
100
  link: "",
@@ -103,7 +105,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
103
105
  ]),
104
106
  _: 1
105
107
  /* STABLE */
106
- })
108
+ })) : vue.createCommentVNode("v-if", true)
107
109
  ])
108
110
  ]),
109
111
  default: vue.withCtx(() => [