giime 0.7.11 → 0.7.13

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 (66) hide show
  1. package/dist/index.css +20 -23
  2. package/es/components/src/base/carousel/Carousel.vue.d.ts +1 -0
  3. package/es/components/src/base/carousel/Carousel.vue2.mjs +1 -1
  4. package/es/components/src/base/carousel/Carousel.vue2.mjs.map +1 -1
  5. package/es/components/src/base/carousel/index.d.ts +3 -0
  6. package/es/components/src/composite/fileComponent/FileComponent.vue.d.ts +44 -2
  7. package/es/components/src/composite/fileComponent/FileComponent.vue2.mjs +53 -28
  8. package/es/components/src/composite/fileComponent/FileComponent.vue2.mjs.map +1 -1
  9. package/es/components/src/composite/fileComponent/fileComponent.d.ts +18 -0
  10. package/es/components/src/composite/fileComponent/fileComponent.mjs +15 -0
  11. package/es/components/src/composite/fileComponent/fileComponent.mjs.map +1 -1
  12. package/es/components/src/composite/fileComponent/index.d.ts +199 -28
  13. package/es/components/src/composite/fileList2/FileList.vue.d.ts +81 -11
  14. package/es/components/src/composite/fileList2/FileList.vue2.mjs +54 -24
  15. package/es/components/src/composite/fileList2/FileList.vue2.mjs.map +1 -1
  16. package/es/components/src/composite/fileList2/fileList.d.ts +28 -1
  17. package/es/components/src/composite/fileList2/fileList.mjs +16 -0
  18. package/es/components/src/composite/fileList2/fileList.mjs.map +1 -1
  19. package/es/components/src/composite/fileList2/index.d.ts +281 -33
  20. package/es/components/src/composite/previewFile/PreviewFile.vue.d.ts +45 -3
  21. package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs +5 -4
  22. package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs.map +1 -1
  23. package/es/components/src/composite/previewFile/index.d.ts +45 -3
  24. package/es/components/src/composite/previewFile/previewFile.d.ts +21 -1
  25. package/es/components/src/composite/previewFile/previewFile.mjs +6 -1
  26. package/es/components/src/composite/previewFile/previewFile.mjs.map +1 -1
  27. package/es/components/src/composite/uploadFile/UploadFile.vue.d.ts +51 -0
  28. package/es/components/src/composite/uploadFile/index.d.ts +107 -0
  29. package/es/components/src/composite/uploadFile/uploadFile.d.ts +23 -0
  30. package/es/giime/version.d.ts +1 -1
  31. package/es/giime/version.mjs +1 -1
  32. package/es/giime/version.mjs.map +1 -1
  33. package/es/index.css +20 -23
  34. package/lib/components/src/base/carousel/Carousel.vue.d.ts +1 -0
  35. package/lib/components/src/base/carousel/Carousel.vue2.js +1 -1
  36. package/lib/components/src/base/carousel/Carousel.vue2.js.map +1 -1
  37. package/lib/components/src/base/carousel/index.d.ts +3 -0
  38. package/lib/components/src/composite/fileComponent/FileComponent.vue.d.ts +44 -2
  39. package/lib/components/src/composite/fileComponent/FileComponent.vue2.js +52 -27
  40. package/lib/components/src/composite/fileComponent/FileComponent.vue2.js.map +1 -1
  41. package/lib/components/src/composite/fileComponent/fileComponent.d.ts +18 -0
  42. package/lib/components/src/composite/fileComponent/fileComponent.js +15 -0
  43. package/lib/components/src/composite/fileComponent/fileComponent.js.map +1 -1
  44. package/lib/components/src/composite/fileComponent/index.d.ts +199 -28
  45. package/lib/components/src/composite/fileList2/FileList.vue.d.ts +81 -11
  46. package/lib/components/src/composite/fileList2/FileList.vue2.js +53 -23
  47. package/lib/components/src/composite/fileList2/FileList.vue2.js.map +1 -1
  48. package/lib/components/src/composite/fileList2/fileList.d.ts +28 -1
  49. package/lib/components/src/composite/fileList2/fileList.js +16 -0
  50. package/lib/components/src/composite/fileList2/fileList.js.map +1 -1
  51. package/lib/components/src/composite/fileList2/index.d.ts +281 -33
  52. package/lib/components/src/composite/previewFile/PreviewFile.vue.d.ts +45 -3
  53. package/lib/components/src/composite/previewFile/PreviewFile.vue2.js +4 -3
  54. package/lib/components/src/composite/previewFile/PreviewFile.vue2.js.map +1 -1
  55. package/lib/components/src/composite/previewFile/index.d.ts +45 -3
  56. package/lib/components/src/composite/previewFile/previewFile.d.ts +21 -1
  57. package/lib/components/src/composite/previewFile/previewFile.js +6 -1
  58. package/lib/components/src/composite/previewFile/previewFile.js.map +1 -1
  59. package/lib/components/src/composite/uploadFile/UploadFile.vue.d.ts +51 -0
  60. package/lib/components/src/composite/uploadFile/index.d.ts +107 -0
  61. package/lib/components/src/composite/uploadFile/uploadFile.d.ts +23 -0
  62. package/lib/giime/version.d.ts +1 -1
  63. package/lib/giime/version.js +1 -1
  64. package/lib/giime/version.js.map +1 -1
  65. package/lib/index.css +20 -23
  66. package/package.json +1 -1
@@ -7,8 +7,6 @@ var index = require('../fileComponent/index.js');
7
7
  var index$1 = require('../previewFile/index.js');
8
8
  var fileList = require('./fileList.js');
9
9
 
10
- const _hoisted_1 = { class: "gm-flex gm-items-center gm-gap-4" };
11
- const _hoisted_2 = ["onClick"];
12
10
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
13
11
  ...{
14
12
  name: "GmFileList"
@@ -17,9 +15,25 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
15
  props: fileList.fileProProps,
18
16
  setup(__props) {
19
17
  const props = __props;
18
+ const fileListStyle = vue.computed(() => {
19
+ return {
20
+ gap: props.fileListGap,
21
+ ...props.fileListStyle
22
+ };
23
+ });
24
+ const fileStyle = vue.computed(() => {
25
+ return {
26
+ width: props.fileWidth,
27
+ height: props.fileHeight,
28
+ border: "1px solid #ccc",
29
+ overflow: "hidden",
30
+ borderRadius: "5px",
31
+ ...props.fileStyle
32
+ };
33
+ });
20
34
  const dialog = vue.ref(false);
21
35
  const fileIndex = vue.ref(0);
22
- const handlePreview = (index) => {
36
+ const handleClick = (file, index) => {
23
37
  fileIndex.value = index;
24
38
  dialog.value = true;
25
39
  };
@@ -28,26 +42,42 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
28
42
  vue.Fragment,
29
43
  null,
30
44
  [
31
- vue.createElementVNode("div", _hoisted_1, [
32
- (vue.openBlock(true), vue.createElementBlock(
33
- vue.Fragment,
34
- null,
35
- vue.renderList(_ctx.fileList, (file, index$1) => {
36
- return vue.openBlock(), vue.createElementBlock("div", {
37
- key: index$1,
38
- class: "gm-relative gm-flex gm-h-32 gm-w-32 gm-cursor-pointer gm-items-center gm-justify-center gm-overflow-hidden gm-rounded gm-border",
39
- onClick: ($event) => handlePreview(index$1)
40
- }, [
41
- vue.createVNode(vue.unref(index.GmFileComponent), vue.mergeProps(props, {
42
- file,
43
- controls: false
44
- }), null, 16, ["file"])
45
- ], 8, _hoisted_2);
46
- }),
47
- 128
48
- /* KEYED_FRAGMENT */
49
- ))
50
- ]),
45
+ vue.createElementVNode(
46
+ "div",
47
+ {
48
+ class: "gm-flex--wrap gm-flex gm-items-center",
49
+ style: vue.normalizeStyle(fileListStyle.value)
50
+ },
51
+ [
52
+ (vue.openBlock(true), vue.createElementBlock(
53
+ vue.Fragment,
54
+ null,
55
+ vue.renderList(_ctx.fileList, (file, index$1) => {
56
+ return vue.openBlock(), vue.createElementBlock("div", {
57
+ key: index$1,
58
+ class: "gm-cursor-pointer"
59
+ }, [
60
+ vue.createVNode(vue.unref(index.GmFileComponent), vue.mergeProps(props, {
61
+ fileStyle: fileStyle.value,
62
+ file,
63
+ controls: false,
64
+ "on-click": (value) => handleClick(value, index$1)
65
+ }), {
66
+ default: vue.withCtx(() => [
67
+ vue.renderSlot(_ctx.$slots, "default", { file })
68
+ ]),
69
+ _: 2
70
+ /* DYNAMIC */
71
+ }, 1040, ["fileStyle", "file", "on-click"])
72
+ ]);
73
+ }),
74
+ 128
75
+ /* KEYED_FRAGMENT */
76
+ ))
77
+ ],
78
+ 4
79
+ /* STYLE */
80
+ ),
51
81
  vue.createVNode(vue.unref(index$1.GmPreviewFile), vue.mergeProps(props, {
52
82
  dialogVisible: dialog.value,
53
83
  "onUpdate:dialogVisible": _cache[0] || (_cache[0] = ($event) => dialog.value = $event),
@@ -1 +1 @@
1
- {"version":3,"file":"FileList.vue2.js","sources":["../../../../../../../packages/components/src/composite/fileList2/FileList.vue"],"sourcesContent":["<template>\n <div class=\"gm-flex gm-items-center gm-gap-4\">\n <div\n v-for=\"(file, index) in fileList\"\n :key=\"index\"\n class=\"gm-relative gm-flex gm-h-32 gm-w-32 gm-cursor-pointer gm-items-center gm-justify-center gm-overflow-hidden gm-rounded gm-border\"\n @click=\"handlePreview(index)\"\n >\n <GmFileComponent v-bind=\"props\" :file :controls=\"false\" />\n </div>\n </div>\n\n <GmPreviewFile v-bind=\"props\" v-model:dialogVisible=\"dialog\" v-model:file-index=\"fileIndex\" />\n</template>\n\n<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport GmFileComponent from '../fileComponent';\nimport GmPreviewFile from '../previewFile';\nimport { fileProProps } from './fileList';\n\ndefineOptions({\n name: 'GmFileList',\n});\n\nconst props = defineProps(fileProProps);\n\nconst dialog = ref(false);\nconst fileIndex = ref(0);\nconst handlePreview = (index: number) => {\n fileIndex.value = index;\n dialog.value = true;\n};\n</script>\n"],"names":["ref"],"mappings":";;;;;;;;;;;;;;;;;;AAyBA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,MAAA,GAASA,QAAI,KAAK,CAAA,CAAA;AACxB,IAAM,MAAA,SAAA,GAAYA,QAAI,CAAC,CAAA,CAAA;AACvB,IAAM,MAAA,aAAA,GAAgB,CAAC,KAAkB,KAAA;AACvC,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAClB,MAAA,MAAA,CAAO,KAAQ,GAAA,IAAA,CAAA;AAAA,KACjB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"FileList.vue2.js","sources":["../../../../../../../packages/components/src/composite/fileList2/FileList.vue"],"sourcesContent":["<template>\n <div class=\"gm-flex--wrap gm-flex gm-items-center\" :style=\"fileListStyle\">\n <div v-for=\"(file, index) in fileList\" :key=\"index\" class=\"gm-cursor-pointer\">\n <GmFileComponent v-bind=\"props\" :fileStyle :file :controls=\"false\" :on-click=\"value => handleClick(value, index)\">\n <slot :file=\"file\" />\n </GmFileComponent>\n </div>\n </div>\n\n <GmPreviewFile v-bind=\"props\" v-model:dialogVisible=\"dialog\" v-model:file-index=\"fileIndex\" />\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport GmFileComponent from '../fileComponent';\nimport GmPreviewFile from '../previewFile';\nimport { fileProProps } from './fileList';\nimport type { UploadFile } from 'element-plus';\n\ndefineOptions({\n name: 'GmFileList',\n});\n\nconst props = defineProps(fileProProps);\n\nconst fileListStyle = computed(() => {\n return {\n gap: props.fileListGap,\n ...props.fileListStyle,\n };\n});\n\nconst fileStyle = computed(() => {\n return {\n width: props.fileWidth,\n height: props.fileHeight,\n border: '1px solid #ccc',\n overflow: 'hidden',\n borderRadius: '5px',\n ...props.fileStyle,\n };\n});\n\nconst dialog = ref(false);\nconst fileIndex = ref(0);\nconst handleClick = (file: Partial<UploadFile>, index: number) => {\n fileIndex.value = index;\n dialog.value = true;\n};\n</script>\n"],"names":["computed","ref"],"mappings":";;;;;;;;;;;;;;;;AAuBA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,aAAA,GAAgBA,aAAS,MAAM;AACnC,MAAO,OAAA;AAAA,QACL,KAAK,KAAM,CAAA,WAAA;AAAA,QACX,GAAG,KAAM,CAAA,aAAA;AAAA,OACX,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAYA,aAAS,MAAM;AAC/B,MAAO,OAAA;AAAA,QACL,OAAO,KAAM,CAAA,SAAA;AAAA,QACb,QAAQ,KAAM,CAAA,UAAA;AAAA,QACd,MAAQ,EAAA,gBAAA;AAAA,QACR,QAAU,EAAA,QAAA;AAAA,QACV,YAAc,EAAA,KAAA;AAAA,QACd,GAAG,KAAM,CAAA,SAAA;AAAA,OACX,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,MAAA,GAASC,QAAI,KAAK,CAAA,CAAA;AACxB,IAAM,MAAA,SAAA,GAAYA,QAAI,CAAC,CAAA,CAAA;AACvB,IAAM,MAAA,WAAA,GAAc,CAAC,IAAA,EAA2B,KAAkB,KAAA;AAChE,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAClB,MAAA,MAAA,CAAO,KAAQ,GAAA,IAAA,CAAA;AAAA,KACjB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -16,10 +16,30 @@ export declare const fileProProps: {
16
16
  type: BooleanConstructor;
17
17
  default: boolean;
18
18
  };
19
- width: {
19
+ fileWidth: {
20
20
  type: StringConstructor;
21
21
  default: string;
22
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
+ };
23
43
  file: {
24
44
  type: PropType<Partial<UploadFile>>;
25
45
  default: () => {};
@@ -28,6 +48,10 @@ export declare const fileProProps: {
28
48
  type: StringConstructor;
29
49
  default: string;
30
50
  };
51
+ fileStyle: {
52
+ type: ObjectConstructor;
53
+ default: () => {};
54
+ };
31
55
  size: {
32
56
  type: NumberConstructor;
33
57
  default: number;
@@ -44,4 +68,7 @@ export declare const fileProProps: {
44
68
  type: BooleanConstructor;
45
69
  default: boolean;
46
70
  };
71
+ onClick: {
72
+ type: PropType<(file: Partial<UploadFile>) => void>;
73
+ };
47
74
  };
@@ -19,6 +19,22 @@ const fileProProps = {
19
19
  oncontextmenu: {
20
20
  type: Boolean,
21
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: () => ({})
22
38
  }
23
39
  };
24
40
 
@@ -1 +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};\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;AACF;;;;"}
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;;;;"}
@@ -1,5 +1,255 @@
1
1
  import FileList from './FileList.vue';
2
- export declare const GmFileList: import("../../../../utils").SFCWithInstall<import("vue").DefineComponent<{
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
+ onClick: {
69
+ type: import("vue").PropType<(file: Partial<import("element-plus").UploadFile>) => void>;
70
+ };
71
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
72
+ fileList: {
73
+ type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
74
+ default: () => never[];
75
+ };
76
+ controlslist: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ oncontextmenu: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ fileWidth: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ fileHeight: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
92
+ fileListGap: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ fileListStyle: {
97
+ type: ObjectConstructor;
98
+ default: () => {};
99
+ };
100
+ previewWidth: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
104
+ openPreviewDownload: {
105
+ type: BooleanConstructor;
106
+ default: boolean;
107
+ };
108
+ file: {
109
+ type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
110
+ default: () => {};
111
+ };
112
+ url: {
113
+ type: StringConstructor;
114
+ default: string;
115
+ };
116
+ fileStyle: {
117
+ type: ObjectConstructor;
118
+ default: () => {};
119
+ };
120
+ size: {
121
+ type: NumberConstructor;
122
+ default: number;
123
+ };
124
+ field: {
125
+ type: StringConstructor;
126
+ default: string;
127
+ };
128
+ controls: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ showIcon: {
133
+ type: BooleanConstructor;
134
+ default: boolean;
135
+ };
136
+ onClick: {
137
+ type: import("vue").PropType<(file: Partial<import("element-plus").UploadFile>) => void>;
138
+ };
139
+ }>>, {
140
+ size: number;
141
+ url: string;
142
+ file: Partial<import("element-plus").UploadFile>;
143
+ showIcon: boolean;
144
+ controls: boolean;
145
+ fileList: Partial<import("element-plus").UploadFile>[];
146
+ field: string;
147
+ fileWidth: string;
148
+ fileHeight: string;
149
+ fileStyle: Record<string, any>;
150
+ controlslist: string;
151
+ oncontextmenu: boolean;
152
+ previewWidth: string;
153
+ openPreviewDownload: boolean;
154
+ fileListGap: string;
155
+ fileListStyle: Record<string, any>;
156
+ }, true, {}, {}, {
157
+ P: {};
158
+ B: {};
159
+ D: {};
160
+ C: {};
161
+ M: {};
162
+ Defaults: {};
163
+ }, Readonly<import("vue").ExtractPropTypes<{
164
+ fileList: {
165
+ type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
166
+ default: () => never[];
167
+ };
168
+ controlslist: {
169
+ type: StringConstructor;
170
+ default: string;
171
+ };
172
+ oncontextmenu: {
173
+ type: BooleanConstructor;
174
+ default: boolean;
175
+ };
176
+ fileWidth: {
177
+ type: StringConstructor;
178
+ default: string;
179
+ };
180
+ fileHeight: {
181
+ type: StringConstructor;
182
+ default: string;
183
+ };
184
+ fileListGap: {
185
+ type: StringConstructor;
186
+ default: string;
187
+ };
188
+ fileListStyle: {
189
+ type: ObjectConstructor;
190
+ default: () => {};
191
+ };
192
+ previewWidth: {
193
+ type: StringConstructor;
194
+ default: string;
195
+ };
196
+ openPreviewDownload: {
197
+ type: BooleanConstructor;
198
+ default: boolean;
199
+ };
200
+ file: {
201
+ type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
202
+ default: () => {};
203
+ };
204
+ url: {
205
+ type: StringConstructor;
206
+ default: string;
207
+ };
208
+ fileStyle: {
209
+ type: ObjectConstructor;
210
+ default: () => {};
211
+ };
212
+ size: {
213
+ type: NumberConstructor;
214
+ default: number;
215
+ };
216
+ field: {
217
+ type: StringConstructor;
218
+ default: string;
219
+ };
220
+ controls: {
221
+ type: BooleanConstructor;
222
+ default: boolean;
223
+ };
224
+ showIcon: {
225
+ type: BooleanConstructor;
226
+ default: boolean;
227
+ };
228
+ onClick: {
229
+ type: import("vue").PropType<(file: Partial<import("element-plus").UploadFile>) => void>;
230
+ };
231
+ }>>, {}, {}, {}, {}, {
232
+ size: number;
233
+ url: string;
234
+ file: Partial<import("element-plus").UploadFile>;
235
+ showIcon: boolean;
236
+ controls: boolean;
237
+ fileList: Partial<import("element-plus").UploadFile>[];
238
+ field: string;
239
+ fileWidth: string;
240
+ fileHeight: string;
241
+ fileStyle: Record<string, any>;
242
+ controlslist: string;
243
+ oncontextmenu: boolean;
244
+ previewWidth: string;
245
+ openPreviewDownload: boolean;
246
+ fileListGap: string;
247
+ fileListStyle: Record<string, any>;
248
+ }>;
249
+ __isFragment?: undefined;
250
+ __isTeleport?: undefined;
251
+ __isSuspense?: undefined;
252
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
3
253
  fileList: {
4
254
  type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
5
255
  default: () => never[];
@@ -12,51 +262,30 @@ export declare const GmFileList: import("../../../../utils").SFCWithInstall<impo
12
262
  type: BooleanConstructor;
13
263
  default: boolean;
14
264
  };
15
- width: {
265
+ fileWidth: {
16
266
  type: StringConstructor;
17
267
  default: string;
18
268
  };
19
- file: {
20
- type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
21
- default: () => {};
22
- };
23
- url: {
269
+ fileHeight: {
24
270
  type: StringConstructor;
25
271
  default: string;
26
272
  };
27
- size: {
28
- type: NumberConstructor;
29
- default: number;
30
- };
31
- field: {
273
+ fileListGap: {
32
274
  type: StringConstructor;
33
275
  default: string;
34
276
  };
35
- controls: {
36
- type: BooleanConstructor;
37
- default: boolean;
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[];
277
+ fileListStyle: {
278
+ type: ObjectConstructor;
279
+ default: () => {};
47
280
  };
48
- controlslist: {
281
+ previewWidth: {
49
282
  type: StringConstructor;
50
283
  default: string;
51
284
  };
52
- oncontextmenu: {
285
+ openPreviewDownload: {
53
286
  type: BooleanConstructor;
54
287
  default: boolean;
55
288
  };
56
- width: {
57
- type: StringConstructor;
58
- default: string;
59
- };
60
289
  file: {
61
290
  type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
62
291
  default: () => {};
@@ -65,6 +294,10 @@ export declare const GmFileList: import("../../../../utils").SFCWithInstall<impo
65
294
  type: StringConstructor;
66
295
  default: string;
67
296
  };
297
+ fileStyle: {
298
+ type: ObjectConstructor;
299
+ default: () => {};
300
+ };
68
301
  size: {
69
302
  type: NumberConstructor;
70
303
  default: number;
@@ -81,18 +314,33 @@ export declare const GmFileList: import("../../../../utils").SFCWithInstall<impo
81
314
  type: BooleanConstructor;
82
315
  default: boolean;
83
316
  };
84
- }>>, {
317
+ onClick: {
318
+ type: import("vue").PropType<(file: Partial<import("element-plus").UploadFile>) => void>;
319
+ };
320
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
85
321
  size: number;
86
322
  url: string;
87
- width: string;
88
323
  file: Partial<import("element-plus").UploadFile>;
89
324
  showIcon: boolean;
90
325
  controls: boolean;
91
326
  fileList: Partial<import("element-plus").UploadFile>[];
92
327
  field: string;
328
+ fileWidth: string;
329
+ fileHeight: string;
330
+ fileStyle: Record<string, any>;
93
331
  controlslist: string;
94
332
  oncontextmenu: boolean;
95
- }, {}>> & Record<string, any>;
333
+ previewWidth: string;
334
+ openPreviewDownload: boolean;
335
+ fileListGap: string;
336
+ fileListStyle: Record<string, any>;
337
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
338
+ $slots: {
339
+ default?(_: {
340
+ file: Partial<import("element-plus").UploadFile>;
341
+ }): any;
342
+ };
343
+ })> & Record<string, any>;
96
344
  export type FileListInstance = InstanceType<typeof FileList>;
97
345
  export * from './fileList';
98
346
  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
- 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,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;
@@ -42,6 +58,9 @@ declare const _default: import("vue").DefineComponent<{
42
58
  type: BooleanConstructor;
43
59
  default: boolean;
44
60
  };
61
+ onClick: {
62
+ type: import("vue").PropType<(file: Partial<UploadFile>) => void>;
63
+ };
45
64
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
65
  "update:dialogVisible": (dialogVisible: boolean) => void;
47
66
  "update:fileIndex": (fileIndex: number) => void;
@@ -52,10 +71,14 @@ declare const _default: import("vue").DefineComponent<{
52
71
  type: import("vue").PropType<Partial<UploadFile>[]>;
53
72
  default: () => never[];
54
73
  };
55
- width: {
74
+ previewWidth: {
56
75
  type: StringConstructor;
57
76
  default: string;
58
77
  };
78
+ openPreviewDownload: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
59
82
  file: {
60
83
  type: import("vue").PropType<Partial<UploadFile>>;
61
84
  default: () => {};
@@ -64,6 +87,18 @@ declare const _default: import("vue").DefineComponent<{
64
87
  type: StringConstructor;
65
88
  default: string;
66
89
  };
90
+ fileWidth: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ };
94
+ fileHeight: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ fileStyle: {
99
+ type: ObjectConstructor;
100
+ default: () => {};
101
+ };
67
102
  size: {
68
103
  type: NumberConstructor;
69
104
  default: number;
@@ -88,19 +123,26 @@ declare const _default: import("vue").DefineComponent<{
88
123
  type: BooleanConstructor;
89
124
  default: boolean;
90
125
  };
126
+ onClick: {
127
+ type: import("vue").PropType<(file: Partial<UploadFile>) => void>;
128
+ };
91
129
  }>> & {
92
130
  "onUpdate:dialogVisible"?: ((dialogVisible: boolean) => any) | undefined;
93
131
  "onUpdate:fileIndex"?: ((fileIndex: number) => any) | undefined;
94
132
  }, {
95
133
  size: number;
96
134
  url: string;
97
- width: string;
98
135
  file: Partial<UploadFile>;
99
136
  showIcon: boolean;
100
137
  controls: boolean;
101
138
  fileList: Partial<UploadFile>[];
102
139
  field: string;
140
+ fileWidth: string;
141
+ fileHeight: string;
142
+ fileStyle: Record<string, any>;
103
143
  controlslist: string;
104
144
  oncontextmenu: boolean;
145
+ previewWidth: string;
146
+ openPreviewDownload: boolean;
105
147
  }, {}>;
106
148
  export default _default;
@@ -85,7 +85,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
85
85
  modelValue: dialogVisible.value,
86
86
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialogVisible.value = $event),
87
87
  title: "\u9884\u89C8",
88
- width: _ctx.width,
88
+ width: _ctx.previewWidth,
89
89
  top: "10vh",
90
90
  "append-to-body": "",
91
91
  "destroy-on-close": ""
@@ -93,7 +93,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
93
93
  header: vue.withCtx(() => [
94
94
  vue.createElementVNode("div", _hoisted_1, [
95
95
  _hoisted_2,
96
- vue.createVNode(_component_el_button, {
96
+ _ctx.openPreviewDownload ? (vue.openBlock(), vue.createBlock(_component_el_button, {
97
+ key: 0,
97
98
  type: "primary",
98
99
  size: "default",
99
100
  link: "",
@@ -104,7 +105,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
104
105
  ]),
105
106
  _: 1
106
107
  /* STABLE */
107
- })
108
+ })) : vue.createCommentVNode("v-if", true)
108
109
  ])
109
110
  ]),
110
111
  default: vue.withCtx(() => [