giime 0.7.10 → 0.7.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +143 -143
- package/es/components/index.mjs +2 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/src/base/carousel/Carousel.vue.d.ts +1 -0
- package/es/components/src/base/carousel/Carousel.vue2.mjs +1 -1
- package/es/components/src/base/carousel/Carousel.vue2.mjs.map +1 -1
- package/es/components/src/base/carousel/index.d.ts +3 -0
- package/es/components/src/composite/fileComponent/FileComponent.vue.d.ts +41 -5
- package/es/components/src/composite/fileComponent/FileComponent.vue2.mjs +47 -28
- package/es/components/src/composite/fileComponent/FileComponent.vue2.mjs.map +1 -1
- package/es/components/src/composite/fileComponent/fileComponent.d.ts +13 -1
- package/es/components/src/composite/fileComponent/fileComponent.mjs +12 -0
- package/es/components/src/composite/fileComponent/fileComponent.mjs.map +1 -1
- package/es/components/src/composite/fileComponent/index.d.ts +190 -31
- package/es/components/src/composite/fileList2/FileList.vue.d.ts +158 -0
- package/es/components/src/composite/fileList2/FileList.vue.mjs +6 -0
- package/es/components/src/composite/fileList2/FileList.vue.mjs.map +1 -0
- package/es/components/src/composite/fileList2/FileList.vue2.mjs +93 -0
- package/es/components/src/composite/fileList2/FileList.vue2.mjs.map +1 -0
- package/es/components/src/composite/fileList2/fileList.d.ts +71 -0
- package/es/components/src/composite/fileList2/fileList.mjs +40 -0
- package/es/components/src/composite/fileList2/fileList.mjs.map +1 -0
- package/es/components/src/composite/fileList2/index.d.ts +334 -0
- package/es/components/src/composite/fileList2/index.mjs +10 -0
- package/es/components/src/composite/fileList2/index.mjs.map +1 -0
- package/es/components/src/composite/index.d.ts +1 -0
- package/es/components/src/composite/index.mjs +2 -0
- package/es/components/src/composite/index.mjs.map +1 -1
- package/es/components/src/composite/previewFile/PreviewFile.vue.d.ts +42 -6
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs +8 -6
- package/es/components/src/composite/previewFile/PreviewFile.vue2.mjs.map +1 -1
- package/es/components/src/composite/previewFile/index.d.ts +42 -6
- package/es/components/src/composite/previewFile/previewFile.d.ts +19 -2
- package/es/components/src/composite/previewFile/previewFile.mjs +6 -1
- package/es/components/src/composite/previewFile/previewFile.mjs.map +1 -1
- package/es/components/src/composite/uploadFile/UploadFile.vue.d.ts +48 -3
- package/es/components/src/composite/uploadFile/index.d.ts +102 -7
- package/es/components/src/composite/uploadFile/uploadFile.d.ts +22 -2
- package/es/giime/component.mjs +4 -0
- package/es/giime/component.mjs.map +1 -1
- package/es/giime/index.mjs +2 -0
- package/es/giime/index.mjs.map +1 -1
- package/es/giime/version.d.ts +1 -1
- package/es/giime/version.mjs +1 -1
- package/es/giime/version.mjs.map +1 -1
- package/es/index.css +143 -143
- package/global.d.ts +2 -0
- package/lib/components/index.js +18 -14
- package/lib/components/index.js.map +1 -1
- package/lib/components/src/base/carousel/Carousel.vue.d.ts +1 -0
- package/lib/components/src/base/carousel/Carousel.vue2.js +1 -1
- package/lib/components/src/base/carousel/Carousel.vue2.js.map +1 -1
- package/lib/components/src/base/carousel/index.d.ts +3 -0
- package/lib/components/src/composite/fileComponent/FileComponent.vue.d.ts +41 -5
- package/lib/components/src/composite/fileComponent/FileComponent.vue2.js +46 -27
- package/lib/components/src/composite/fileComponent/FileComponent.vue2.js.map +1 -1
- package/lib/components/src/composite/fileComponent/fileComponent.d.ts +13 -1
- package/lib/components/src/composite/fileComponent/fileComponent.js +12 -0
- package/lib/components/src/composite/fileComponent/fileComponent.js.map +1 -1
- package/lib/components/src/composite/fileComponent/index.d.ts +190 -31
- package/lib/components/src/composite/fileList2/FileList.vue.d.ts +158 -0
- package/lib/components/src/composite/fileList2/FileList.vue.js +10 -0
- package/lib/components/src/composite/fileList2/FileList.vue.js.map +1 -0
- package/lib/components/src/composite/fileList2/FileList.vue2.js +97 -0
- package/lib/components/src/composite/fileList2/FileList.vue2.js.map +1 -0
- package/lib/components/src/composite/fileList2/fileList.d.ts +71 -0
- package/lib/components/src/composite/fileList2/fileList.js +42 -0
- package/lib/components/src/composite/fileList2/fileList.js.map +1 -0
- package/lib/components/src/composite/fileList2/index.d.ts +334 -0
- package/lib/components/src/composite/fileList2/index.js +16 -0
- package/lib/components/src/composite/fileList2/index.js.map +1 -0
- package/lib/components/src/composite/index.d.ts +1 -0
- package/lib/components/src/composite/index.js +4 -0
- package/lib/components/src/composite/index.js.map +1 -1
- package/lib/components/src/composite/previewFile/PreviewFile.vue.d.ts +42 -6
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js +7 -5
- package/lib/components/src/composite/previewFile/PreviewFile.vue2.js.map +1 -1
- package/lib/components/src/composite/previewFile/index.d.ts +42 -6
- package/lib/components/src/composite/previewFile/previewFile.d.ts +19 -2
- package/lib/components/src/composite/previewFile/previewFile.js +6 -1
- package/lib/components/src/composite/previewFile/previewFile.js.map +1 -1
- package/lib/components/src/composite/uploadFile/UploadFile.vue.d.ts +48 -3
- package/lib/components/src/composite/uploadFile/index.d.ts +102 -7
- package/lib/components/src/composite/uploadFile/uploadFile.d.ts +22 -2
- package/lib/giime/component.js +32 -28
- package/lib/giime/component.js.map +1 -1
- package/lib/giime/index.js +80 -76
- package/lib/giime/index.js.map +1 -1
- package/lib/giime/version.d.ts +1 -1
- package/lib/giime/version.js +1 -1
- package/lib/giime/version.js.map +1 -1
- package/lib/index.css +143 -143
- package/package.json +1 -1
|
@@ -9,6 +9,18 @@ const fileComponentProps = {
|
|
|
9
9
|
type: String,
|
|
10
10
|
default: "url"
|
|
11
11
|
},
|
|
12
|
+
fileWidth: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "100%"
|
|
15
|
+
},
|
|
16
|
+
fileHeight: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "100%"
|
|
19
|
+
},
|
|
20
|
+
fileStyle: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: () => ({})
|
|
23
|
+
},
|
|
12
24
|
/** 图标大小 */
|
|
13
25
|
size: {
|
|
14
26
|
type: Number,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileComponent.mjs","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
|
|
1
|
+
{"version":3,"file":"fileComponent.mjs","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 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};\n"],"names":[],"mappings":"AAMO,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;AACF;;;;"}
|
|
@@ -1,5 +1,176 @@
|
|
|
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
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
file: {
|
|
50
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
51
|
+
default: () => {};
|
|
52
|
+
};
|
|
53
|
+
url: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
fileWidth: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
fileHeight: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
fileStyle: {
|
|
66
|
+
type: ObjectConstructor;
|
|
67
|
+
default: () => {};
|
|
68
|
+
};
|
|
69
|
+
size: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
field: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
controls: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
controlslist: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
oncontextmenu: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
showIcon: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
}>>, {
|
|
94
|
+
size: number;
|
|
95
|
+
url: string;
|
|
96
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
97
|
+
showIcon: boolean;
|
|
98
|
+
controls: boolean;
|
|
99
|
+
field: string;
|
|
100
|
+
fileWidth: string;
|
|
101
|
+
fileHeight: string;
|
|
102
|
+
fileStyle: Record<string, any>;
|
|
103
|
+
controlslist: string;
|
|
104
|
+
oncontextmenu: boolean;
|
|
105
|
+
}, true, {}, {}, {
|
|
106
|
+
P: {};
|
|
107
|
+
B: {};
|
|
108
|
+
D: {};
|
|
109
|
+
C: {};
|
|
110
|
+
M: {};
|
|
111
|
+
Defaults: {};
|
|
112
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
113
|
+
file: {
|
|
114
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
115
|
+
default: () => {};
|
|
116
|
+
};
|
|
117
|
+
url: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
fileWidth: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
fileHeight: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
fileStyle: {
|
|
130
|
+
type: ObjectConstructor;
|
|
131
|
+
default: () => {};
|
|
132
|
+
};
|
|
133
|
+
size: {
|
|
134
|
+
type: NumberConstructor;
|
|
135
|
+
default: number;
|
|
136
|
+
};
|
|
137
|
+
field: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
controls: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
controlslist: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
oncontextmenu: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
showIcon: {
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
157
|
+
}>>, {}, {}, {}, {}, {
|
|
158
|
+
size: number;
|
|
159
|
+
url: string;
|
|
160
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
161
|
+
showIcon: boolean;
|
|
162
|
+
controls: boolean;
|
|
163
|
+
field: string;
|
|
164
|
+
fileWidth: string;
|
|
165
|
+
fileHeight: string;
|
|
166
|
+
fileStyle: Record<string, any>;
|
|
167
|
+
controlslist: string;
|
|
168
|
+
oncontextmenu: boolean;
|
|
169
|
+
}>;
|
|
170
|
+
__isFragment?: undefined;
|
|
171
|
+
__isTeleport?: undefined;
|
|
172
|
+
__isSuspense?: undefined;
|
|
173
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
3
174
|
file: {
|
|
4
175
|
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
5
176
|
default: () => {};
|
|
@@ -8,45 +179,24 @@ export declare const GmFileComponent: import("../../../../utils").SFCWithInstall
|
|
|
8
179
|
type: StringConstructor;
|
|
9
180
|
default: string;
|
|
10
181
|
};
|
|
11
|
-
|
|
12
|
-
type:
|
|
13
|
-
default: number;
|
|
14
|
-
};
|
|
15
|
-
field: {
|
|
16
|
-
type: import("vue").PropType<keyof import("element-plus").UploadFile>;
|
|
182
|
+
fileWidth: {
|
|
183
|
+
type: StringConstructor;
|
|
17
184
|
default: string;
|
|
18
185
|
};
|
|
19
|
-
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
controlslist: {
|
|
186
|
+
fileHeight: {
|
|
24
187
|
type: StringConstructor;
|
|
25
188
|
default: string;
|
|
26
189
|
};
|
|
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>>;
|
|
190
|
+
fileStyle: {
|
|
191
|
+
type: ObjectConstructor;
|
|
38
192
|
default: () => {};
|
|
39
193
|
};
|
|
40
|
-
url: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
194
|
size: {
|
|
45
195
|
type: NumberConstructor;
|
|
46
196
|
default: number;
|
|
47
197
|
};
|
|
48
198
|
field: {
|
|
49
|
-
type:
|
|
199
|
+
type: StringConstructor;
|
|
50
200
|
default: string;
|
|
51
201
|
};
|
|
52
202
|
controls: {
|
|
@@ -65,16 +215,25 @@ export declare const GmFileComponent: import("../../../../utils").SFCWithInstall
|
|
|
65
215
|
type: BooleanConstructor;
|
|
66
216
|
default: boolean;
|
|
67
217
|
};
|
|
68
|
-
}>>, {
|
|
218
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
69
219
|
size: number;
|
|
70
220
|
url: string;
|
|
71
221
|
file: Partial<import("element-plus").UploadFile>;
|
|
72
222
|
showIcon: boolean;
|
|
73
223
|
controls: boolean;
|
|
74
|
-
field:
|
|
224
|
+
field: string;
|
|
225
|
+
fileWidth: string;
|
|
226
|
+
fileHeight: string;
|
|
227
|
+
fileStyle: Record<string, any>;
|
|
75
228
|
controlslist: string;
|
|
76
229
|
oncontextmenu: boolean;
|
|
77
|
-
}, {}
|
|
230
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
231
|
+
$slots: {
|
|
232
|
+
default?(_: {
|
|
233
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
234
|
+
}): any;
|
|
235
|
+
};
|
|
236
|
+
})> & Record<string, any>;
|
|
78
237
|
export type FileComponentInstance = InstanceType<typeof FileComponent>;
|
|
79
238
|
export * from './fileComponent';
|
|
80
239
|
export default GmFileComponent;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<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
|
+
fileWidth: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
fileHeight: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
fileListGap: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
fileListStyle: {
|
|
27
|
+
type: ObjectConstructor;
|
|
28
|
+
default: () => {};
|
|
29
|
+
};
|
|
30
|
+
previewWidth: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
openPreviewDownload: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
file: {
|
|
39
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
40
|
+
default: () => {};
|
|
41
|
+
};
|
|
42
|
+
url: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
fileStyle: {
|
|
47
|
+
type: ObjectConstructor;
|
|
48
|
+
default: () => {};
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
field: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
controls: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
showIcon: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
67
|
+
fileList: {
|
|
68
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>[]>;
|
|
69
|
+
default: () => never[];
|
|
70
|
+
};
|
|
71
|
+
controlslist: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
oncontextmenu: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
fileWidth: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
fileHeight: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
fileListGap: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
fileListStyle: {
|
|
92
|
+
type: ObjectConstructor;
|
|
93
|
+
default: () => {};
|
|
94
|
+
};
|
|
95
|
+
previewWidth: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
openPreviewDownload: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
file: {
|
|
104
|
+
type: import("vue").PropType<Partial<import("element-plus").UploadFile>>;
|
|
105
|
+
default: () => {};
|
|
106
|
+
};
|
|
107
|
+
url: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
fileStyle: {
|
|
112
|
+
type: ObjectConstructor;
|
|
113
|
+
default: () => {};
|
|
114
|
+
};
|
|
115
|
+
size: {
|
|
116
|
+
type: NumberConstructor;
|
|
117
|
+
default: number;
|
|
118
|
+
};
|
|
119
|
+
field: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
controls: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
showIcon: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
}>>, {
|
|
132
|
+
size: number;
|
|
133
|
+
url: string;
|
|
134
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
135
|
+
showIcon: boolean;
|
|
136
|
+
controls: boolean;
|
|
137
|
+
fileList: Partial<import("element-plus").UploadFile>[];
|
|
138
|
+
field: string;
|
|
139
|
+
fileWidth: string;
|
|
140
|
+
fileHeight: string;
|
|
141
|
+
fileStyle: Record<string, any>;
|
|
142
|
+
controlslist: string;
|
|
143
|
+
oncontextmenu: boolean;
|
|
144
|
+
previewWidth: string;
|
|
145
|
+
openPreviewDownload: boolean;
|
|
146
|
+
fileListGap: string;
|
|
147
|
+
fileListStyle: Record<string, any>;
|
|
148
|
+
}, {}>, {
|
|
149
|
+
default?(_: {
|
|
150
|
+
file: Partial<import("element-plus").UploadFile>;
|
|
151
|
+
}): any;
|
|
152
|
+
}>;
|
|
153
|
+
export default _default;
|
|
154
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
155
|
+
new (): {
|
|
156
|
+
$slots: S;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileList.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, openBlock, createElementBlock, Fragment, createElementVNode, normalizeStyle, renderList, createVNode, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { GmFileComponent } from '../fileComponent/index.mjs';
|
|
3
|
+
import { GmPreviewFile } from '../previewFile/index.mjs';
|
|
4
|
+
import { fileProProps } from './fileList.mjs';
|
|
5
|
+
|
|
6
|
+
const _hoisted_1 = ["onClick"];
|
|
7
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
...{
|
|
9
|
+
name: "GmFileList"
|
|
10
|
+
},
|
|
11
|
+
__name: "FileList",
|
|
12
|
+
props: fileProProps,
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const fileListStyle = computed(() => {
|
|
16
|
+
return {
|
|
17
|
+
gap: props.fileListGap,
|
|
18
|
+
...props.fileListStyle
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
const fileStyle = computed(() => {
|
|
22
|
+
return {
|
|
23
|
+
width: props.fileWidth,
|
|
24
|
+
height: props.fileHeight,
|
|
25
|
+
border: "1px solid #ccc",
|
|
26
|
+
overflow: "hidden",
|
|
27
|
+
borderRadius: "5px",
|
|
28
|
+
...props.fileStyle
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
const dialog = ref(false);
|
|
32
|
+
const fileIndex = ref(0);
|
|
33
|
+
const handlePreview = (index) => {
|
|
34
|
+
fileIndex.value = index;
|
|
35
|
+
dialog.value = true;
|
|
36
|
+
};
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return openBlock(), createElementBlock(
|
|
39
|
+
Fragment,
|
|
40
|
+
null,
|
|
41
|
+
[
|
|
42
|
+
createElementVNode(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
class: "gm-flex--wrap gm-flex gm-items-center",
|
|
46
|
+
style: normalizeStyle(fileListStyle.value)
|
|
47
|
+
},
|
|
48
|
+
[
|
|
49
|
+
(openBlock(true), createElementBlock(
|
|
50
|
+
Fragment,
|
|
51
|
+
null,
|
|
52
|
+
renderList(_ctx.fileList, (file, index) => {
|
|
53
|
+
return openBlock(), createElementBlock("div", {
|
|
54
|
+
key: index,
|
|
55
|
+
class: "gm-cursor-pointer",
|
|
56
|
+
onClick: ($event) => handlePreview(index)
|
|
57
|
+
}, [
|
|
58
|
+
createVNode(unref(GmFileComponent), mergeProps(props, {
|
|
59
|
+
fileStyle: fileStyle.value,
|
|
60
|
+
file,
|
|
61
|
+
controls: false
|
|
62
|
+
}), {
|
|
63
|
+
default: withCtx(() => [
|
|
64
|
+
renderSlot(_ctx.$slots, "default", { file })
|
|
65
|
+
]),
|
|
66
|
+
_: 2
|
|
67
|
+
/* DYNAMIC */
|
|
68
|
+
}, 1040, ["fileStyle", "file"])
|
|
69
|
+
], 8, _hoisted_1);
|
|
70
|
+
}),
|
|
71
|
+
128
|
|
72
|
+
/* KEYED_FRAGMENT */
|
|
73
|
+
))
|
|
74
|
+
],
|
|
75
|
+
4
|
|
76
|
+
/* STYLE */
|
|
77
|
+
),
|
|
78
|
+
createVNode(unref(GmPreviewFile), mergeProps(props, {
|
|
79
|
+
dialogVisible: dialog.value,
|
|
80
|
+
"onUpdate:dialogVisible": _cache[0] || (_cache[0] = ($event) => dialog.value = $event),
|
|
81
|
+
"file-index": fileIndex.value,
|
|
82
|
+
"onUpdate:fileIndex": _cache[1] || (_cache[1] = ($event) => fileIndex.value = $event)
|
|
83
|
+
}), null, 16, ["dialogVisible", "file-index"])
|
|
84
|
+
],
|
|
85
|
+
64
|
|
86
|
+
/* STABLE_FRAGMENT */
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
export { _sfc_main as default };
|
|
93
|
+
//# sourceMappingURL=FileList.vue2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileList.vue2.mjs","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\" @click=\"handlePreview(index)\">\n <GmFileComponent v-bind=\"props\" :fileStyle :file :controls=\"false\"> <slot :file=\"file\" /> </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';\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 handlePreview = (index: number) => {\n fileIndex.value = index;\n dialog.value = true;\n};\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;AAoBA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,aAAA,GAAgB,SAAS,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,GAAY,SAAS,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,GAAS,IAAI,KAAK,CAAA,CAAA;AACxB,IAAM,MAAA,SAAA,GAAY,IAAI,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,71 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { UploadFile } from 'element-plus';
|
|
3
|
+
export declare const fileProProps: {
|
|
4
|
+
/** 文件列表 */
|
|
5
|
+
fileList: {
|
|
6
|
+
type: PropType<Partial<UploadFile>[]>;
|
|
7
|
+
default: () => never[];
|
|
8
|
+
};
|
|
9
|
+
/** 视频控制器选项 */
|
|
10
|
+
controlslist: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
/** 视频是否显示右键菜单 */
|
|
15
|
+
oncontextmenu: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
fileWidth: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
fileHeight: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
fileListGap: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
fileListStyle: {
|
|
32
|
+
type: ObjectConstructor;
|
|
33
|
+
default: () => {};
|
|
34
|
+
};
|
|
35
|
+
previewWidth: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
}; /** 视频是否显示右键菜单 */
|
|
39
|
+
openPreviewDownload: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
file: {
|
|
44
|
+
type: PropType<Partial<UploadFile>>;
|
|
45
|
+
default: () => {};
|
|
46
|
+
};
|
|
47
|
+
url: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
fileStyle: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
default: () => {};
|
|
54
|
+
};
|
|
55
|
+
size: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
field: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
controls: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
showIcon: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import '../previewFile/index.mjs';
|
|
2
|
+
import { previewFileProps } from '../previewFile/previewFile.mjs';
|
|
3
|
+
|
|
4
|
+
const fileProProps = {
|
|
5
|
+
...previewFileProps,
|
|
6
|
+
/** 文件列表 */
|
|
7
|
+
fileList: {
|
|
8
|
+
type: Array,
|
|
9
|
+
default: () => []
|
|
10
|
+
},
|
|
11
|
+
/** 视频控制器选项 */
|
|
12
|
+
controlslist: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "nodownload"
|
|
15
|
+
},
|
|
16
|
+
/** 视频是否显示右键菜单 */
|
|
17
|
+
oncontextmenu: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
},
|
|
21
|
+
fileWidth: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "120px"
|
|
24
|
+
},
|
|
25
|
+
fileHeight: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "120px"
|
|
28
|
+
},
|
|
29
|
+
fileListGap: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "10px"
|
|
32
|
+
},
|
|
33
|
+
fileListStyle: {
|
|
34
|
+
type: Object,
|
|
35
|
+
default: () => ({})
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export { fileProProps };
|
|
40
|
+
//# sourceMappingURL=fileList.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileList.mjs","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":[],"mappings":";;;AAIO,MAAM,YAAe,GAAA;AAAA,EAC1B,GAAG,gBAAA;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;;;;"}
|