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.
- package/dist/index.css +20 -23
- package/es/components/src/base/carousel/Carousel.vue.d.ts +1 -0
- package/es/components/src/base/carousel/Carousel.vue2.mjs +1 -1
- package/es/components/src/base/carousel/Carousel.vue2.mjs.map +1 -1
- package/es/components/src/base/carousel/index.d.ts +3 -0
- package/es/components/src/composite/fileComponent/FileComponent.vue.d.ts +44 -2
- package/es/components/src/composite/fileComponent/FileComponent.vue2.mjs +53 -28
- package/es/components/src/composite/fileComponent/FileComponent.vue2.mjs.map +1 -1
- package/es/components/src/composite/fileComponent/fileComponent.d.ts +18 -0
- package/es/components/src/composite/fileComponent/fileComponent.mjs +15 -0
- package/es/components/src/composite/fileComponent/fileComponent.mjs.map +1 -1
- package/es/components/src/composite/fileComponent/index.d.ts +199 -28
- package/es/components/src/composite/fileList2/FileList.vue.d.ts +81 -11
- package/es/components/src/composite/fileList2/FileList.vue2.mjs +54 -24
- package/es/components/src/composite/fileList2/FileList.vue2.mjs.map +1 -1
- package/es/components/src/composite/fileList2/fileList.d.ts +28 -1
- package/es/components/src/composite/fileList2/fileList.mjs +16 -0
- package/es/components/src/composite/fileList2/fileList.mjs.map +1 -1
- package/es/components/src/composite/fileList2/index.d.ts +281 -33
- package/es/components/src/composite/previewFile/PreviewFile.vue.d.ts +45 -3
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs +5 -4
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs.map +1 -1
- package/es/components/src/composite/previewFile/index.d.ts +45 -3
- package/es/components/src/composite/previewFile/previewFile.d.ts +21 -1
- package/es/components/src/composite/previewFile/previewFile.mjs +6 -1
- package/es/components/src/composite/previewFile/previewFile.mjs.map +1 -1
- package/es/components/src/composite/uploadFile/UploadFile.vue.d.ts +51 -0
- package/es/components/src/composite/uploadFile/index.d.ts +107 -0
- package/es/components/src/composite/uploadFile/uploadFile.d.ts +23 -0
- 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 +20 -23
- package/lib/components/src/base/carousel/Carousel.vue.d.ts +1 -0
- package/lib/components/src/base/carousel/Carousel.vue2.js +1 -1
- package/lib/components/src/base/carousel/Carousel.vue2.js.map +1 -1
- package/lib/components/src/base/carousel/index.d.ts +3 -0
- package/lib/components/src/composite/fileComponent/FileComponent.vue.d.ts +44 -2
- package/lib/components/src/composite/fileComponent/FileComponent.vue2.js +52 -27
- package/lib/components/src/composite/fileComponent/FileComponent.vue2.js.map +1 -1
- package/lib/components/src/composite/fileComponent/fileComponent.d.ts +18 -0
- package/lib/components/src/composite/fileComponent/fileComponent.js +15 -0
- package/lib/components/src/composite/fileComponent/fileComponent.js.map +1 -1
- package/lib/components/src/composite/fileComponent/index.d.ts +199 -28
- package/lib/components/src/composite/fileList2/FileList.vue.d.ts +81 -11
- package/lib/components/src/composite/fileList2/FileList.vue2.js +53 -23
- package/lib/components/src/composite/fileList2/FileList.vue2.js.map +1 -1
- package/lib/components/src/composite/fileList2/fileList.d.ts +28 -1
- package/lib/components/src/composite/fileList2/fileList.js +16 -0
- package/lib/components/src/composite/fileList2/fileList.js.map +1 -1
- package/lib/components/src/composite/fileList2/index.d.ts +281 -33
- package/lib/components/src/composite/previewFile/PreviewFile.vue.d.ts +45 -3
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js +4 -3
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js.map +1 -1
- package/lib/components/src/composite/previewFile/index.d.ts +45 -3
- package/lib/components/src/composite/previewFile/previewFile.d.ts +21 -1
- package/lib/components/src/composite/previewFile/previewFile.js +6 -1
- package/lib/components/src/composite/previewFile/previewFile.js.map +1 -1
- package/lib/components/src/composite/uploadFile/UploadFile.vue.d.ts +51 -0
- package/lib/components/src/composite/uploadFile/index.d.ts +107 -0
- package/lib/components/src/composite/uploadFile/uploadFile.d.ts +23 -0
- 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 +20 -23
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ var vue = require('vue');
|
|
|
6
6
|
var is = require('../../../../utils/src/is.js');
|
|
7
7
|
var fileComponent = require('./fileComponent.js');
|
|
8
8
|
|
|
9
|
-
const _hoisted_1 = { class: "gm-flex gm-h-full gm-items-center gm-justify-center" };
|
|
9
|
+
const _hoisted_1 = { class: "gm-flex gm-h-full gm-w-full gm-flex-col gm-items-center gm-justify-center" };
|
|
10
10
|
const _hoisted_2 = ["src"];
|
|
11
11
|
const _hoisted_3 = ["src", "controls", "controlslist", "oncontextmenu"];
|
|
12
12
|
const _hoisted_4 = ["src"];
|
|
@@ -24,6 +24,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
24
24
|
height: `${props.size}px`
|
|
25
25
|
};
|
|
26
26
|
});
|
|
27
|
+
const fileStyle = vue.computed(() => {
|
|
28
|
+
return {
|
|
29
|
+
width: props.fileWidth,
|
|
30
|
+
height: props.fileHeight,
|
|
31
|
+
...props.fileStyle
|
|
32
|
+
};
|
|
33
|
+
});
|
|
27
34
|
const fileURL = vue.computed(() => {
|
|
28
35
|
return props.file[props.url];
|
|
29
36
|
});
|
|
@@ -58,40 +65,58 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
58
65
|
const matchedType = typeCheckers.find(({ check }) => check());
|
|
59
66
|
return matchedType?.icon || iconList.unknown;
|
|
60
67
|
});
|
|
68
|
+
const handleClick = () => {
|
|
69
|
+
if (!props.onClick)
|
|
70
|
+
return;
|
|
71
|
+
props.onClick(props.file);
|
|
72
|
+
};
|
|
61
73
|
return (_ctx, _cache) => {
|
|
62
74
|
const _component_el_image = vue.resolveComponent("el-image");
|
|
63
75
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
src: fileURL.value,
|
|
72
|
-
controls: _ctx.controls,
|
|
73
|
-
controlslist: _ctx.controlslist,
|
|
74
|
-
oncontextmenu: () => _ctx.oncontextmenu,
|
|
75
|
-
style: { "width": "100%", "height": "100%" }
|
|
76
|
-
}, null, 8, _hoisted_3)) : (vue.openBlock(), vue.createElementBlock(
|
|
77
|
-
vue.Fragment,
|
|
78
|
-
{ key: 2 },
|
|
76
|
+
vue.createElementVNode(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
class: "gm-flex gm-items-center gm-justify-center",
|
|
80
|
+
style: vue.normalizeStyle(fileStyle.value),
|
|
81
|
+
onClick: handleClick
|
|
82
|
+
},
|
|
79
83
|
[
|
|
80
|
-
|
|
84
|
+
isImageFile.value ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
81
85
|
key: 0,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
src: fileURL.value,
|
|
87
|
+
fit: "contain",
|
|
88
|
+
style: { "max-width": "100%", "max-height": "100%" }
|
|
89
|
+
}, null, 8, _hoisted_2)) : isVideoFile.value ? (vue.openBlock(), vue.createElementBlock("video", {
|
|
85
90
|
key: 1,
|
|
86
91
|
src: fileURL.value,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
controls: _ctx.controls,
|
|
93
|
+
controlslist: _ctx.controlslist,
|
|
94
|
+
oncontextmenu: () => _ctx.oncontextmenu,
|
|
95
|
+
style: { "max-width": "100%", "max-height": "100%" }
|
|
96
|
+
}, null, 8, _hoisted_3)) : (vue.openBlock(), vue.createElementBlock(
|
|
97
|
+
vue.Fragment,
|
|
98
|
+
{ key: 2 },
|
|
99
|
+
[
|
|
100
|
+
_ctx.showIcon || !showIframe.value ? (vue.openBlock(), vue.createBlock(_component_el_image, {
|
|
101
|
+
key: 0,
|
|
102
|
+
style: vue.normalizeStyle(iconStyle.value),
|
|
103
|
+
src: iconURL.value
|
|
104
|
+
}, null, 8, ["style", "src"])) : (vue.openBlock(), vue.createElementBlock("iframe", {
|
|
105
|
+
key: 1,
|
|
106
|
+
src: fileURL.value,
|
|
107
|
+
width: "850px",
|
|
108
|
+
height: "100%",
|
|
109
|
+
frameborder: "0"
|
|
110
|
+
}, null, 8, _hoisted_4))
|
|
111
|
+
],
|
|
112
|
+
64
|
|
113
|
+
/* STABLE_FRAGMENT */
|
|
114
|
+
))
|
|
91
115
|
],
|
|
92
|
-
|
|
93
|
-
/*
|
|
94
|
-
)
|
|
116
|
+
4
|
|
117
|
+
/* STYLE */
|
|
118
|
+
),
|
|
119
|
+
vue.renderSlot(_ctx.$slots, "default", { file: _ctx.file })
|
|
95
120
|
]);
|
|
96
121
|
};
|
|
97
122
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileComponent.vue2.js","sources":["../../../../../../../packages/components/src/composite/fileComponent/FileComponent.vue"],"sourcesContent":["<template>\n <div class=\"gm-flex gm-h-full gm-items-center gm-justify-center\">\n <img v-if=\"isImageFile\" :src=\"fileURL\" fit=\"contain\" style=\"max-width: 100%; max-height: 100%\" />\n
|
|
1
|
+
{"version":3,"file":"FileComponent.vue2.js","sources":["../../../../../../../packages/components/src/composite/fileComponent/FileComponent.vue"],"sourcesContent":["<template>\n <div class=\"gm-flex gm-h-full gm-w-full gm-flex-col gm-items-center gm-justify-center\">\n <div class=\"gm-flex gm-items-center gm-justify-center\" :style=\"fileStyle\" @click=\"handleClick\">\n <img v-if=\"isImageFile\" :src=\"fileURL\" fit=\"contain\" style=\"max-width: 100%; max-height: 100%\" />\n <video\n v-else-if=\"isVideoFile\"\n :src=\"fileURL\"\n :controls=\"controls\"\n :controlslist=\"controlslist\"\n :oncontextmenu=\"() => oncontextmenu\"\n style=\"max-width: 100%; max-height: 100%\"\n />\n <template v-else>\n <el-image v-if=\"showIcon || !showIframe\" :style=\"iconStyle\" :src=\"iconURL\" />\n <iframe v-else :src=\"fileURL\" width=\"850px\" height=\"100%\" frameborder=\"0\" />\n </template>\n </div>\n <slot :file=\"file\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport { isExcel, isImageUrl, isPDF, isPPT, isPSD, isText, isVideoUrl, isWord, isZip } from '@giime/utils/src/is';\nimport { fileComponentProps } from './fileComponent';\n// import PDF from './assets/image/pdf.svg';\n// import WORD from './assets/image/word.svg';\n// import EXCEL from './assets/image/excel.svg';\n// import PPT from './assets/image/ppt.svg';\n// import PSD from './assets/image/psd.svg';\n// import TEXT from './assets/image/text.svg';\n// import ZIP from './assets/image/zip.svg';\n// import UNKNOWN from './assets/image/unknown.svg';\nimport type { UploadFile } from 'element-plus';\n\ndefineOptions({\n name: 'GmFileComponent',\n});\n\nconst props = defineProps(fileComponentProps);\n\nconst iconStyle = computed(() => {\n return {\n width: `${props.size}px`,\n height: `${props.size}px`,\n };\n});\n\nconst fileStyle = computed(() => {\n return {\n width: props.fileWidth,\n height: props.fileHeight,\n ...props.fileStyle,\n };\n});\n\n/** 文件链接地址 */\nconst fileURL = computed(() => {\n return props.file[props.url as keyof UploadFile] as string;\n});\n\n/** 验证文件类型的字段 */\nconst verifyFile = computed(() => {\n return props.file[props.field as keyof UploadFile] as string;\n});\n\nconst isImageFile = computed(() => isImageUrl(fileURL.value) || isImageUrl(verifyFile.value));\nconst isVideoFile = computed(() => isVideoUrl(fileURL.value) || isVideoUrl(verifyFile.value));\n\n/** 显示iframe */\nconst showIframe = computed(() => {\n return isPDF(fileURL.value) || isPDF(verifyFile.value) || isText(fileURL.value) || isText(verifyFile.value);\n});\n\n/** 图标 */\nconst iconList = {\n excel: 'https://sucai.giikin.cn/workflow/material-refer-1739947054012-1213-335.svg',\n pdf: 'https://sucai.giikin.cn/workflow/material-refer-1739947288698-5462-586.svg',\n word: 'https://sucai.giikin.cn/workflow/material-refer-1739947288698-1540-625.svg',\n txt: 'https://sucai.giikin.cn/workflow/material-refer-1739947288698-1700-90.svg',\n zip: 'https://sucai.giikin.cn/workflow/material-refer-1739947288698-2639-507.svg',\n psd: 'https://sucai.giikin.cn/workflow/material-refer-1739947288698-5026-760.svg',\n ppt: 'https://sucai.giikin.cn/workflow/material-refer-1739947288698-2867-970.svg',\n unknown: 'https://sucai.giikin.cn/workflow/material-refer-1739947288698-1448-736.svg',\n};\n\nconst iconURL = computed<string>(() => {\n // 文件类型检查器映射\n const typeCheckers = [\n { check: () => isPDF(fileURL.value) || isPDF(verifyFile.value), icon: iconList.pdf },\n { check: () => isWord(fileURL.value) || isWord(verifyFile.value), icon: iconList.word },\n { check: () => isExcel(fileURL.value) || isExcel(verifyFile.value), icon: iconList.excel },\n { check: () => isText(fileURL.value) || isText(verifyFile.value), icon: iconList.txt },\n { check: () => isPPT(fileURL.value) || isPPT(verifyFile.value), icon: iconList.ppt },\n { check: () => isZip(fileURL.value) || isZip(verifyFile.value), icon: iconList.zip },\n { check: () => isPSD(fileURL.value) || isPSD(verifyFile.value), icon: iconList.psd },\n ];\n\n // 查找匹配的文件类型\n const matchedType = typeCheckers.find(({ check }) => check());\n\n return matchedType?.icon || iconList.unknown;\n});\n\nconst handleClick = () => {\n if (!props.onClick) return;\n props.onClick(props.file);\n};\n</script>\n"],"names":["computed","isImageUrl","isVideoUrl","isPDF","isText","isWord","isExcel","isPPT","isZip","isPSD"],"mappings":"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"}
|
|
@@ -2,6 +2,9 @@ import { type PropType } from 'vue';
|
|
|
2
2
|
import { type UploadFile } from 'element-plus';
|
|
3
3
|
/** 视频控制器 */
|
|
4
4
|
export type Controls = 'nodownload' | 'nofullscreen' | 'noremoteplayback' | 'noplaybackrate';
|
|
5
|
+
export interface FileComponentHooks {
|
|
6
|
+
onClick: (file: Partial<UploadFile>) => void;
|
|
7
|
+
}
|
|
5
8
|
export declare const fileComponentProps: {
|
|
6
9
|
/** 文件 */
|
|
7
10
|
file: {
|
|
@@ -13,6 +16,18 @@ export declare const fileComponentProps: {
|
|
|
13
16
|
type: StringConstructor;
|
|
14
17
|
default: string;
|
|
15
18
|
};
|
|
19
|
+
fileWidth: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
fileHeight: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
fileStyle: {
|
|
28
|
+
type: ObjectConstructor;
|
|
29
|
+
default: () => {};
|
|
30
|
+
};
|
|
16
31
|
/** 图标大小 */
|
|
17
32
|
size: {
|
|
18
33
|
type: NumberConstructor;
|
|
@@ -43,4 +58,7 @@ export declare const fileComponentProps: {
|
|
|
43
58
|
type: BooleanConstructor;
|
|
44
59
|
default: boolean;
|
|
45
60
|
};
|
|
61
|
+
onClick: {
|
|
62
|
+
type: PropType<(file: Partial<UploadFile>) => void>;
|
|
63
|
+
};
|
|
46
64
|
};
|
|
@@ -11,6 +11,18 @@ const fileComponentProps = {
|
|
|
11
11
|
type: String,
|
|
12
12
|
default: "url"
|
|
13
13
|
},
|
|
14
|
+
fileWidth: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "100%"
|
|
17
|
+
},
|
|
18
|
+
fileHeight: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "100%"
|
|
21
|
+
},
|
|
22
|
+
fileStyle: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default: () => ({})
|
|
25
|
+
},
|
|
14
26
|
/** 图标大小 */
|
|
15
27
|
size: {
|
|
16
28
|
type: Number,
|
|
@@ -40,6 +52,9 @@ const fileComponentProps = {
|
|
|
40
52
|
showIcon: {
|
|
41
53
|
type: Boolean,
|
|
42
54
|
default: false
|
|
55
|
+
},
|
|
56
|
+
onClick: {
|
|
57
|
+
type: Function
|
|
43
58
|
}
|
|
44
59
|
};
|
|
45
60
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileComponent.js","sources":["../../../../../../../packages/components/src/composite/fileComponent/fileComponent.ts"],"sourcesContent":["import { type PropType } from 'vue';\nimport { type UploadFile } from 'element-plus';\n\n/** 视频控制器 */\nexport type Controls = 'nodownload' | 'nofullscreen' | 'noremoteplayback' | 'noplaybackrate';\n\nexport const fileComponentProps = {\n /** 文件 */\n file: {\n type: Object as PropType<Partial<UploadFile>>,\n default: () => ({}),\n },\n /** 文件链接字段 */\n url: {\n type: String,\n default: 'url',\n },\n /** 图标大小 */\n size: {\n type: Number,\n default: 80,\n },\n /** 文件类型判断字段 */\n field: {\n type: String,\n default: 'name',\n },\n /** 视频是否显示操作按钮 */\n controls: {\n type: Boolean,\n default: true,\n },\n /** 视频控制器选项 */\n controlslist: {\n type: String,\n default: '',\n },\n /** 视频是否显示右键菜单 */\n oncontextmenu: {\n type: Boolean,\n default: true,\n },\n /** 是否显示icon */\n showIcon: {\n type: Boolean,\n default: false,\n },\n};\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"fileComponent.js","sources":["../../../../../../../packages/components/src/composite/fileComponent/fileComponent.ts"],"sourcesContent":["import { type PropType } from 'vue';\nimport { type UploadFile } from 'element-plus';\n\n/** 视频控制器 */\nexport type Controls = 'nodownload' | 'nofullscreen' | 'noremoteplayback' | 'noplaybackrate';\n\nexport interface FileComponentHooks {\n onClick: (file: Partial<UploadFile>) => void;\n}\n\nexport const fileComponentProps = {\n /** 文件 */\n file: {\n type: Object as PropType<Partial<UploadFile>>,\n default: () => ({}),\n },\n /** 文件链接字段 */\n url: {\n type: String,\n default: 'url',\n },\n fileWidth: {\n type: String,\n default: '100%',\n },\n fileHeight: {\n type: String,\n default: '100%',\n },\n fileStyle: {\n type: Object,\n default: () => ({}),\n },\n /** 图标大小 */\n size: {\n type: Number,\n default: 80,\n },\n /** 文件类型判断字段 */\n field: {\n type: String,\n default: 'name',\n },\n /** 视频是否显示操作按钮 */\n controls: {\n type: Boolean,\n default: true,\n },\n /** 视频控制器选项 */\n controlslist: {\n type: String,\n default: '',\n },\n /** 视频是否显示右键菜单 */\n oncontextmenu: {\n type: Boolean,\n default: true,\n },\n /** 是否显示icon */\n showIcon: {\n type: Boolean,\n default: false,\n },\n onClick: {\n type: Function as PropType<FileComponentHooks['onClick']>,\n },\n};\n"],"names":[],"mappings":";;AAUO,MAAM,kBAAqB,GAAA;AAAA;AAAA,EAEhC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA;AAAA,EAEA,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,MAAA;AAAA,GACX;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,MAAA;AAAA,GACX;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA;AAAA,EAEA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA,EAEA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,MAAA;AAAA,GACX;AAAA;AAAA,EAEA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA,EAEA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA,EAEA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA;AAAA,EAEA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,QAAA;AAAA,GACR;AACF;;;;"}
|
|
@@ -1,5 +1,185 @@
|
|
|
1
1
|
import FileComponent from './FileComponent.vue';
|
|
2
|
-
export declare const GmFileComponent: import("../../../../utils").SFCWithInstall<
|
|
2
|
+
export declare const GmFileComponent: import("../../../../utils").SFCWithInstall<{
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
file: {
|
|
5
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
url: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
fileWidth: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
fileHeight: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
fileStyle: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
field: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
controls: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
controlslist: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
oncontextmenu: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
showIcon: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
onClick: {
|
|
49
|
+
type: import("vue").PropType<(file: Partial<import("element-plus").UploadFile>) => void>;
|
|
50
|
+
};
|
|
51
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
file: {
|
|
53
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
54
|
+
default: () => {};
|
|
55
|
+
};
|
|
56
|
+
url: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
fileWidth: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
fileHeight: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
fileStyle: {
|
|
69
|
+
type: ObjectConstructor;
|
|
70
|
+
default: () => {};
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
default: number;
|
|
75
|
+
};
|
|
76
|
+
field: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
controls: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
controlslist: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
oncontextmenu: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
showIcon: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
onClick: {
|
|
97
|
+
type: import("vue").PropType<(file: Partial<import("element-plus").UploadFile>) => void>;
|
|
98
|
+
};
|
|
99
|
+
}>>, {
|
|
100
|
+
size: number;
|
|
101
|
+
url: string;
|
|
102
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
103
|
+
showIcon: boolean;
|
|
104
|
+
controls: boolean;
|
|
105
|
+
field: string;
|
|
106
|
+
fileWidth: string;
|
|
107
|
+
fileHeight: string;
|
|
108
|
+
fileStyle: Record<string, any>;
|
|
109
|
+
controlslist: string;
|
|
110
|
+
oncontextmenu: boolean;
|
|
111
|
+
}, true, {}, {}, {
|
|
112
|
+
P: {};
|
|
113
|
+
B: {};
|
|
114
|
+
D: {};
|
|
115
|
+
C: {};
|
|
116
|
+
M: {};
|
|
117
|
+
Defaults: {};
|
|
118
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
119
|
+
file: {
|
|
120
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
121
|
+
default: () => {};
|
|
122
|
+
};
|
|
123
|
+
url: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
fileWidth: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
fileHeight: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
fileStyle: {
|
|
136
|
+
type: ObjectConstructor;
|
|
137
|
+
default: () => {};
|
|
138
|
+
};
|
|
139
|
+
size: {
|
|
140
|
+
type: NumberConstructor;
|
|
141
|
+
default: number;
|
|
142
|
+
};
|
|
143
|
+
field: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
147
|
+
controls: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
151
|
+
controlslist: {
|
|
152
|
+
type: StringConstructor;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
155
|
+
oncontextmenu: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
159
|
+
showIcon: {
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
default: boolean;
|
|
162
|
+
};
|
|
163
|
+
onClick: {
|
|
164
|
+
type: import("vue").PropType<(file: Partial<import("element-plus").UploadFile>) => void>;
|
|
165
|
+
};
|
|
166
|
+
}>>, {}, {}, {}, {}, {
|
|
167
|
+
size: number;
|
|
168
|
+
url: string;
|
|
169
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
170
|
+
showIcon: boolean;
|
|
171
|
+
controls: boolean;
|
|
172
|
+
field: string;
|
|
173
|
+
fileWidth: string;
|
|
174
|
+
fileHeight: string;
|
|
175
|
+
fileStyle: Record<string, any>;
|
|
176
|
+
controlslist: string;
|
|
177
|
+
oncontextmenu: boolean;
|
|
178
|
+
}>;
|
|
179
|
+
__isFragment?: undefined;
|
|
180
|
+
__isTeleport?: undefined;
|
|
181
|
+
__isSuspense?: undefined;
|
|
182
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
3
183
|
file: {
|
|
4
184
|
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
5
185
|
default: () => {};
|
|
@@ -8,39 +188,18 @@ export declare const GmFileComponent: import("../../../../utils").SFCWithInstall
|
|
|
8
188
|
type: StringConstructor;
|
|
9
189
|
default: string;
|
|
10
190
|
};
|
|
11
|
-
|
|
12
|
-
type: NumberConstructor;
|
|
13
|
-
default: number;
|
|
14
|
-
};
|
|
15
|
-
field: {
|
|
191
|
+
fileWidth: {
|
|
16
192
|
type: StringConstructor;
|
|
17
193
|
default: string;
|
|
18
194
|
};
|
|
19
|
-
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
controlslist: {
|
|
195
|
+
fileHeight: {
|
|
24
196
|
type: StringConstructor;
|
|
25
197
|
default: string;
|
|
26
198
|
};
|
|
27
|
-
|
|
28
|
-
type:
|
|
29
|
-
default: boolean;
|
|
30
|
-
};
|
|
31
|
-
showIcon: {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
-
file: {
|
|
37
|
-
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
199
|
+
fileStyle: {
|
|
200
|
+
type: ObjectConstructor;
|
|
38
201
|
default: () => {};
|
|
39
202
|
};
|
|
40
|
-
url: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
203
|
size: {
|
|
45
204
|
type: NumberConstructor;
|
|
46
205
|
default: number;
|
|
@@ -65,16 +224,28 @@ export declare const GmFileComponent: import("../../../../utils").SFCWithInstall
|
|
|
65
224
|
type: BooleanConstructor;
|
|
66
225
|
default: boolean;
|
|
67
226
|
};
|
|
68
|
-
|
|
227
|
+
onClick: {
|
|
228
|
+
type: import("vue").PropType<(file: Partial<import("element-plus").UploadFile>) => void>;
|
|
229
|
+
};
|
|
230
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
69
231
|
size: number;
|
|
70
232
|
url: string;
|
|
71
233
|
file: Partial<import("element-plus").UploadFile>;
|
|
72
234
|
showIcon: boolean;
|
|
73
235
|
controls: boolean;
|
|
74
236
|
field: string;
|
|
237
|
+
fileWidth: string;
|
|
238
|
+
fileHeight: string;
|
|
239
|
+
fileStyle: Record<string, any>;
|
|
75
240
|
controlslist: string;
|
|
76
241
|
oncontextmenu: boolean;
|
|
77
|
-
}, {}
|
|
242
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
243
|
+
$slots: {
|
|
244
|
+
default?(_: {
|
|
245
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
246
|
+
}): any;
|
|
247
|
+
};
|
|
248
|
+
})> & Record<string, any>;
|
|
78
249
|
export type FileComponentInstance = InstanceType<typeof FileComponent>;
|
|
79
250
|
export * from './fileComponent';
|
|
80
251
|
export default GmFileComponent;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { UploadFile } from 'element-plus';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
3
|
fileList: {
|
|
3
|
-
type: import("vue").PropType<Partial<
|
|
4
|
+
type: import("vue").PropType<Partial<UploadFile>[]>;
|
|
4
5
|
default: () => never[];
|
|
5
6
|
};
|
|
6
7
|
controlslist: {
|
|
@@ -11,18 +12,42 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
12
|
type: BooleanConstructor;
|
|
12
13
|
default: boolean;
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
+
fileWidth: {
|
|
15
16
|
type: StringConstructor;
|
|
16
17
|
default: string;
|
|
17
18
|
};
|
|
19
|
+
fileHeight: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
fileListGap: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
fileListStyle: {
|
|
28
|
+
type: ObjectConstructor;
|
|
29
|
+
default: () => {};
|
|
30
|
+
};
|
|
31
|
+
previewWidth: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
openPreviewDownload: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
18
39
|
file: {
|
|
19
|
-
type: import("vue").PropType<Partial<
|
|
40
|
+
type: import("vue").PropType<Partial<UploadFile>>;
|
|
20
41
|
default: () => {};
|
|
21
42
|
};
|
|
22
43
|
url: {
|
|
23
44
|
type: StringConstructor;
|
|
24
45
|
default: string;
|
|
25
46
|
};
|
|
47
|
+
fileStyle: {
|
|
48
|
+
type: ObjectConstructor;
|
|
49
|
+
default: () => {};
|
|
50
|
+
};
|
|
26
51
|
size: {
|
|
27
52
|
type: NumberConstructor;
|
|
28
53
|
default: number;
|
|
@@ -39,9 +64,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
64
|
type: BooleanConstructor;
|
|
40
65
|
default: boolean;
|
|
41
66
|
};
|
|
67
|
+
onClick: {
|
|
68
|
+
type: import("vue").PropType<(file: Partial<UploadFile>) => void>;
|
|
69
|
+
};
|
|
42
70
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
71
|
fileList: {
|
|
44
|
-
type: import("vue").PropType<Partial<
|
|
72
|
+
type: import("vue").PropType<Partial<UploadFile>[]>;
|
|
45
73
|
default: () => never[];
|
|
46
74
|
};
|
|
47
75
|
controlslist: {
|
|
@@ -52,18 +80,42 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
80
|
type: BooleanConstructor;
|
|
53
81
|
default: boolean;
|
|
54
82
|
};
|
|
55
|
-
|
|
83
|
+
fileWidth: {
|
|
56
84
|
type: StringConstructor;
|
|
57
85
|
default: string;
|
|
58
86
|
};
|
|
87
|
+
fileHeight: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
fileListGap: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
fileListStyle: {
|
|
96
|
+
type: ObjectConstructor;
|
|
97
|
+
default: () => {};
|
|
98
|
+
};
|
|
99
|
+
previewWidth: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
openPreviewDownload: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
59
107
|
file: {
|
|
60
|
-
type: import("vue").PropType<Partial<
|
|
108
|
+
type: import("vue").PropType<Partial<UploadFile>>;
|
|
61
109
|
default: () => {};
|
|
62
110
|
};
|
|
63
111
|
url: {
|
|
64
112
|
type: StringConstructor;
|
|
65
113
|
default: string;
|
|
66
114
|
};
|
|
115
|
+
fileStyle: {
|
|
116
|
+
type: ObjectConstructor;
|
|
117
|
+
default: () => {};
|
|
118
|
+
};
|
|
67
119
|
size: {
|
|
68
120
|
type: NumberConstructor;
|
|
69
121
|
default: number;
|
|
@@ -80,16 +132,34 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
132
|
type: BooleanConstructor;
|
|
81
133
|
default: boolean;
|
|
82
134
|
};
|
|
135
|
+
onClick: {
|
|
136
|
+
type: import("vue").PropType<(file: Partial<UploadFile>) => void>;
|
|
137
|
+
};
|
|
83
138
|
}>>, {
|
|
84
139
|
size: number;
|
|
85
140
|
url: string;
|
|
86
|
-
|
|
87
|
-
file: Partial<import("element-plus").UploadFile>;
|
|
141
|
+
file: Partial<UploadFile>;
|
|
88
142
|
showIcon: boolean;
|
|
89
143
|
controls: boolean;
|
|
90
|
-
fileList: Partial<
|
|
144
|
+
fileList: Partial<UploadFile>[];
|
|
91
145
|
field: string;
|
|
146
|
+
fileWidth: string;
|
|
147
|
+
fileHeight: string;
|
|
148
|
+
fileStyle: Record<string, any>;
|
|
92
149
|
controlslist: string;
|
|
93
150
|
oncontextmenu: boolean;
|
|
94
|
-
|
|
151
|
+
previewWidth: string;
|
|
152
|
+
openPreviewDownload: boolean;
|
|
153
|
+
fileListGap: string;
|
|
154
|
+
fileListStyle: Record<string, any>;
|
|
155
|
+
}, {}>, {
|
|
156
|
+
default?(_: {
|
|
157
|
+
file: Partial<UploadFile>;
|
|
158
|
+
}): any;
|
|
159
|
+
}>;
|
|
95
160
|
export default _default;
|
|
161
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
162
|
+
new (): {
|
|
163
|
+
$slots: S;
|
|
164
|
+
};
|
|
165
|
+
};
|