giime 0.7.9 → 0.7.11
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 +64 -61
- package/es/components/index.mjs +2 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/src/business/uploadPro/UploadPro.vue.mjs +1 -1
- package/es/components/src/business/uploadPro/UploadPro.vue2.mjs +1 -8
- package/es/components/src/business/uploadPro/UploadPro.vue2.mjs.map +1 -1
- package/es/components/src/composite/fileComponent/FileComponent.vue.d.ts +3 -3
- package/es/components/src/composite/fileComponent/fileComponent.d.ts +1 -1
- package/es/components/src/composite/fileComponent/fileComponent.mjs.map +1 -1
- package/es/components/src/composite/fileComponent/index.d.ts +3 -3
- package/es/components/src/composite/fileList2/FileList.vue.d.ts +95 -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 +62 -0
- package/es/components/src/composite/fileList2/FileList.vue2.mjs.map +1 -0
- package/es/components/src/composite/fileList2/fileList.d.ts +47 -0
- package/es/components/src/composite/fileList2/fileList.mjs +24 -0
- package/es/components/src/composite/fileList2/fileList.mjs.map +1 -0
- package/es/components/src/composite/fileList2/index.d.ts +98 -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 +3 -3
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs +3 -2
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs.map +1 -1
- package/es/components/src/composite/previewFile/index.d.ts +3 -3
- package/es/components/src/composite/previewFile/previewFile.d.ts +1 -1
- package/es/components/src/composite/uploadFile/UploadFile.vue.d.ts +3 -3
- package/es/components/src/composite/uploadFile/index.d.ts +7 -7
- package/es/components/src/composite/uploadFile/uploadFile.d.ts +1 -1
- 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 +64 -61
- package/es/utils/src/file.d.ts +7 -5
- package/es/utils/src/file.mjs +26 -4
- package/es/utils/src/file.mjs.map +1 -1
- 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/business/uploadPro/UploadPro.vue.js +1 -1
- package/lib/components/src/business/uploadPro/UploadPro.vue2.js +1 -8
- package/lib/components/src/business/uploadPro/UploadPro.vue2.js.map +1 -1
- package/lib/components/src/composite/fileComponent/FileComponent.vue.d.ts +3 -3
- package/lib/components/src/composite/fileComponent/fileComponent.d.ts +1 -1
- package/lib/components/src/composite/fileComponent/fileComponent.js.map +1 -1
- package/lib/components/src/composite/fileComponent/index.d.ts +3 -3
- package/lib/components/src/composite/fileList2/FileList.vue.d.ts +95 -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 +66 -0
- package/lib/components/src/composite/fileList2/FileList.vue2.js.map +1 -0
- package/lib/components/src/composite/fileList2/fileList.d.ts +47 -0
- package/lib/components/src/composite/fileList2/fileList.js +26 -0
- package/lib/components/src/composite/fileList2/fileList.js.map +1 -0
- package/lib/components/src/composite/fileList2/index.d.ts +98 -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 +3 -3
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js +3 -2
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js.map +1 -1
- package/lib/components/src/composite/previewFile/index.d.ts +3 -3
- package/lib/components/src/composite/previewFile/previewFile.d.ts +1 -1
- package/lib/components/src/composite/uploadFile/UploadFile.vue.d.ts +3 -3
- package/lib/components/src/composite/uploadFile/index.d.ts +7 -7
- package/lib/components/src/composite/uploadFile/uploadFile.d.ts +1 -1
- 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 +64 -61
- package/lib/utils/src/file.d.ts +7 -5
- package/lib/utils/src/file.js +26 -4
- package/lib/utils/src/file.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
fileList: {
|
|
3
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
4
|
+
default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
controlslist: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
oncontextmenu: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
width: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
file: {
|
|
19
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
url: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
field: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
controls: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
showIcon: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
fileList: {
|
|
44
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
45
|
+
default: () => never[];
|
|
46
|
+
};
|
|
47
|
+
controlslist: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
oncontextmenu: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
width: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
file: {
|
|
60
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
61
|
+
default: () => {};
|
|
62
|
+
};
|
|
63
|
+
url: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
size: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
field: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
controls: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
showIcon: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
}>>, {
|
|
84
|
+
size: number;
|
|
85
|
+
url: string;
|
|
86
|
+
width: string;
|
|
87
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
88
|
+
showIcon: boolean;
|
|
89
|
+
controls: boolean;
|
|
90
|
+
fileList: Partial<import("element-plus").UploadFile>[];
|
|
91
|
+
field: string;
|
|
92
|
+
controlslist: string;
|
|
93
|
+
oncontextmenu: boolean;
|
|
94
|
+
}, {}>;
|
|
95
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var FileList_vue_vue_type_script_setup_true_lang = require('./FileList.vue2.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = FileList_vue_vue_type_script_setup_true_lang.default;
|
|
10
|
+
//# sourceMappingURL=FileList.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileList.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index = require('../fileComponent/index.js');
|
|
7
|
+
var index$1 = require('../previewFile/index.js');
|
|
8
|
+
var fileList = require('./fileList.js');
|
|
9
|
+
|
|
10
|
+
const _hoisted_1 = { class: "gm-flex gm-items-center gm-gap-4" };
|
|
11
|
+
const _hoisted_2 = ["onClick"];
|
|
12
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
13
|
+
...{
|
|
14
|
+
name: "GmFileList"
|
|
15
|
+
},
|
|
16
|
+
__name: "FileList",
|
|
17
|
+
props: fileList.fileProProps,
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const dialog = vue.ref(false);
|
|
21
|
+
const fileIndex = vue.ref(0);
|
|
22
|
+
const handlePreview = (index) => {
|
|
23
|
+
fileIndex.value = index;
|
|
24
|
+
dialog.value = true;
|
|
25
|
+
};
|
|
26
|
+
return (_ctx, _cache) => {
|
|
27
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
28
|
+
vue.Fragment,
|
|
29
|
+
null,
|
|
30
|
+
[
|
|
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
|
+
]),
|
|
51
|
+
vue.createVNode(vue.unref(index$1.GmPreviewFile), vue.mergeProps(props, {
|
|
52
|
+
dialogVisible: dialog.value,
|
|
53
|
+
"onUpdate:dialogVisible": _cache[0] || (_cache[0] = ($event) => dialog.value = $event),
|
|
54
|
+
"file-index": fileIndex.value,
|
|
55
|
+
"onUpdate:fileIndex": _cache[1] || (_cache[1] = ($event) => fileIndex.value = $event)
|
|
56
|
+
}), null, 16, ["dialogVisible", "file-index"])
|
|
57
|
+
],
|
|
58
|
+
64
|
|
59
|
+
/* STABLE_FRAGMENT */
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
exports.default = _sfc_main;
|
|
66
|
+
//# sourceMappingURL=FileList.vue2.js.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
width: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
file: {
|
|
24
|
+
type: PropType<Partial<UploadFile>>;
|
|
25
|
+
default: () => {};
|
|
26
|
+
};
|
|
27
|
+
url: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
size: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
field: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
controls: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
showIcon: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.fileProProps = fileProProps;
|
|
26
|
+
//# 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};\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;;;;"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import FileList from './FileList.vue';
|
|
2
|
+
export declare const GmFileList: import("../../../../utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
fileList: {
|
|
4
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
5
|
+
default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
controlslist: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
oncontextmenu: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
width: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
file: {
|
|
20
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
21
|
+
default: () => {};
|
|
22
|
+
};
|
|
23
|
+
url: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
size: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
field: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
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[];
|
|
47
|
+
};
|
|
48
|
+
controlslist: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
oncontextmenu: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
width: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
file: {
|
|
61
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
62
|
+
default: () => {};
|
|
63
|
+
};
|
|
64
|
+
url: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
size: {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
default: number;
|
|
71
|
+
};
|
|
72
|
+
field: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
controls: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
showIcon: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
}>>, {
|
|
85
|
+
size: number;
|
|
86
|
+
url: string;
|
|
87
|
+
width: string;
|
|
88
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
89
|
+
showIcon: boolean;
|
|
90
|
+
controls: boolean;
|
|
91
|
+
fileList: Partial<import("element-plus").UploadFile>[];
|
|
92
|
+
field: string;
|
|
93
|
+
controlslist: string;
|
|
94
|
+
oncontextmenu: boolean;
|
|
95
|
+
}, {}>> & Record<string, any>;
|
|
96
|
+
export type FileListInstance = InstanceType<typeof FileList>;
|
|
97
|
+
export * from './fileList';
|
|
98
|
+
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;;;;;;"}
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -23,7 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
default: number;
|
|
24
24
|
};
|
|
25
25
|
field: {
|
|
26
|
-
type:
|
|
26
|
+
type: StringConstructor;
|
|
27
27
|
default: string;
|
|
28
28
|
};
|
|
29
29
|
controls: {
|
|
@@ -69,7 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
69
|
default: number;
|
|
70
70
|
};
|
|
71
71
|
field: {
|
|
72
|
-
type:
|
|
72
|
+
type: StringConstructor;
|
|
73
73
|
default: string;
|
|
74
74
|
};
|
|
75
75
|
controls: {
|
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
showIcon: boolean;
|
|
100
100
|
controls: boolean;
|
|
101
101
|
fileList: Partial<UploadFile>[];
|
|
102
|
-
field:
|
|
102
|
+
field: string;
|
|
103
103
|
controlslist: string;
|
|
104
104
|
oncontextmenu: boolean;
|
|
105
105
|
}, {}>;
|
|
@@ -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
|
-
|
|
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");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreviewFile.vue2.js","sources":["../../../../../../../packages/components/src/composite/previewFile/PreviewFile.vue"],"sourcesContent":["<template>\n <el-dialog v-model=\"dialogVisible\" title=\"预览\" :width=\"width\" 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 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 { ArrowLeftBold, ArrowRightBold } from '@element-plus/icons-vue';\nimport GmFileComponent from '../fileComponent';\nimport { previewFileProps } from './previewFile';\nimport type { UploadFile } from 'element-plus';\
|
|
1
|
+
{"version":3,"file":"PreviewFile.vue2.js","sources":["../../../../../../../packages/components/src/composite/previewFile/PreviewFile.vue"],"sourcesContent":["<template>\n <el-dialog v-model=\"dialogVisible\" title=\"预览\" :width=\"width\" 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 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","useDownload","computed","ElMessage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAM,MAAA,aAAA,GAAgBA,YAAqB,CAAA,OAAA,EAAA,eAAmC,CAAA,CAAA;AAC9E,IAAM,MAAA,SAAA,GAAYA,YAAmB,CAAA,OAAA,EAAC,WAA2B,CAAA,CAAA;AAEjE,IAAA,MAAM,iBAAiBC,iBAAY,EAAA,CAAA;AAEnC,IAAM,MAAA,KAAA,GAAQC,aAAS,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,GAAYA,aAAS,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,MAAAC,qBAAA,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,MAAAA,qBAAA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -23,7 +23,7 @@ export declare const GmPreviewFile: import("../../../../utils").SFCWithInstall<i
|
|
|
23
23
|
default: number;
|
|
24
24
|
};
|
|
25
25
|
field: {
|
|
26
|
-
type:
|
|
26
|
+
type: StringConstructor;
|
|
27
27
|
default: string;
|
|
28
28
|
};
|
|
29
29
|
controls: {
|
|
@@ -69,7 +69,7 @@ export declare const GmPreviewFile: import("../../../../utils").SFCWithInstall<i
|
|
|
69
69
|
default: number;
|
|
70
70
|
};
|
|
71
71
|
field: {
|
|
72
|
-
type:
|
|
72
|
+
type: StringConstructor;
|
|
73
73
|
default: string;
|
|
74
74
|
};
|
|
75
75
|
controls: {
|
|
@@ -99,7 +99,7 @@ export declare const GmPreviewFile: import("../../../../utils").SFCWithInstall<i
|
|
|
99
99
|
showIcon: boolean;
|
|
100
100
|
controls: boolean;
|
|
101
101
|
fileList: Partial<import("element-plus").UploadFile>[];
|
|
102
|
-
field:
|
|
102
|
+
field: string;
|
|
103
103
|
controlslist: string;
|
|
104
104
|
oncontextmenu: boolean;
|
|
105
105
|
}, {}>> & Record<string, any>;
|
|
@@ -232,7 +232,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
232
232
|
default: number;
|
|
233
233
|
};
|
|
234
234
|
field: {
|
|
235
|
-
type:
|
|
235
|
+
type: StringConstructor;
|
|
236
236
|
default: string;
|
|
237
237
|
};
|
|
238
238
|
controls: {
|
|
@@ -971,7 +971,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
971
971
|
default: number;
|
|
972
972
|
};
|
|
973
973
|
field: {
|
|
974
|
-
type:
|
|
974
|
+
type: StringConstructor;
|
|
975
975
|
default: string;
|
|
976
976
|
};
|
|
977
977
|
controls: {
|
|
@@ -1036,7 +1036,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
1036
1036
|
deleteTip: boolean;
|
|
1037
1037
|
disabledCheckboxUids: number[];
|
|
1038
1038
|
onAllComplete: () => void;
|
|
1039
|
-
field:
|
|
1039
|
+
field: string;
|
|
1040
1040
|
controlslist: string;
|
|
1041
1041
|
oncontextmenu: boolean;
|
|
1042
1042
|
folder: string;
|
|
@@ -232,7 +232,7 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
232
232
|
default: number;
|
|
233
233
|
};
|
|
234
234
|
field: {
|
|
235
|
-
type:
|
|
235
|
+
type: StringConstructor;
|
|
236
236
|
default: string;
|
|
237
237
|
};
|
|
238
238
|
controls: {
|
|
@@ -977,7 +977,7 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
977
977
|
default: number;
|
|
978
978
|
};
|
|
979
979
|
field: {
|
|
980
|
-
type:
|
|
980
|
+
type: StringConstructor;
|
|
981
981
|
default: string;
|
|
982
982
|
};
|
|
983
983
|
controls: {
|
|
@@ -1042,7 +1042,7 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
1042
1042
|
deleteTip: boolean;
|
|
1043
1043
|
disabledCheckboxUids: number[];
|
|
1044
1044
|
onAllComplete: () => void;
|
|
1045
|
-
field:
|
|
1045
|
+
field: string;
|
|
1046
1046
|
controlslist: string;
|
|
1047
1047
|
oncontextmenu: boolean;
|
|
1048
1048
|
folder: string;
|
|
@@ -1292,7 +1292,7 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
1292
1292
|
default: number;
|
|
1293
1293
|
};
|
|
1294
1294
|
field: {
|
|
1295
|
-
type:
|
|
1295
|
+
type: StringConstructor;
|
|
1296
1296
|
default: string;
|
|
1297
1297
|
};
|
|
1298
1298
|
controls: {
|
|
@@ -1837,7 +1837,7 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
1837
1837
|
deleteTip: boolean;
|
|
1838
1838
|
disabledCheckboxUids: number[];
|
|
1839
1839
|
onAllComplete: () => void;
|
|
1840
|
-
field:
|
|
1840
|
+
field: string;
|
|
1841
1841
|
controlslist: string;
|
|
1842
1842
|
oncontextmenu: boolean;
|
|
1843
1843
|
folder: string;
|
|
@@ -2084,7 +2084,7 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
2084
2084
|
default: number;
|
|
2085
2085
|
};
|
|
2086
2086
|
field: {
|
|
2087
|
-
type:
|
|
2087
|
+
type: StringConstructor;
|
|
2088
2088
|
default: string;
|
|
2089
2089
|
};
|
|
2090
2090
|
controls: {
|
|
@@ -2636,7 +2636,7 @@ export declare const GmUploadFile: import("../../../../utils").SFCWithInstall<{
|
|
|
2636
2636
|
deleteTip: boolean;
|
|
2637
2637
|
disabledCheckboxUids: number[];
|
|
2638
2638
|
onAllComplete: () => void;
|
|
2639
|
-
field:
|
|
2639
|
+
field: string;
|
|
2640
2640
|
controlslist: string;
|
|
2641
2641
|
oncontextmenu: boolean;
|
|
2642
2642
|
folder: string;
|