bm-admin-ui 1.0.19-alpha → 1.0.21-alpha
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/es/components/button/index.d.ts +3 -3
- package/es/components/button/src/button.vue.d.ts +3 -3
- package/es/components/feedback/index.d.ts +4 -4
- package/es/components/feedback/src/bmAlert.vue.d.ts +2 -2
- package/es/components/feedback/src/bmModal.vue.d.ts +2 -2
- package/es/components/float-table/index.js +1 -1
- package/es/components/input-tags-display/index.d.ts +42 -1
- package/es/components/input-tags-display/index.js +57 -22
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +42 -1
- package/es/components/search-filter/index.d.ts +40 -16
- package/es/components/search-filter/index.js +18 -6
- package/es/components/search-filter/src/search-filter.d.ts +24 -4
- package/es/components/search-filter/src/search-filter.vue.d.ts +40 -16
- package/es/components/search-filter/src/search-reset-btn.vue.d.ts +39 -0
- package/es/components/staffs-selector/index.d.ts +1 -1
- package/es/components/staffs-selector/index.js +1 -1
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -1
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/es/components/upload/index.d.ts +1 -0
- package/es/components/upload/index.js +52 -22
- package/es/components/upload/src/upload.vue.d.ts +1 -0
- package/index.esm.js +222 -145
- package/index.js +221 -144
- package/lib/components/button/index.d.ts +3 -3
- package/lib/components/button/src/button.vue.d.ts +3 -3
- package/lib/components/feedback/index.d.ts +4 -4
- package/lib/components/feedback/src/bmAlert.vue.d.ts +2 -2
- package/lib/components/feedback/src/bmModal.vue.d.ts +2 -2
- package/lib/components/float-table/index.js +1 -1
- package/lib/components/input-tags-display/index.d.ts +42 -1
- package/lib/components/input-tags-display/index.js +57 -22
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +42 -1
- package/lib/components/search-filter/index.d.ts +40 -16
- package/lib/components/search-filter/index.js +18 -6
- package/lib/components/search-filter/src/search-filter.d.ts +24 -4
- package/lib/components/search-filter/src/search-filter.vue.d.ts +40 -16
- package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +39 -0
- package/lib/components/staffs-selector/index.d.ts +1 -1
- package/lib/components/staffs-selector/index.js +1 -1
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -1
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/lib/components/upload/index.d.ts +1 -0
- package/lib/components/upload/index.js +52 -22
- package/lib/components/upload/src/upload.vue.d.ts +1 -0
- package/package.json +1 -1
- package/theme-chalk/feedback.css +1 -1
- package/theme-chalk/float-table.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/button/index.d.ts +3 -3
- package/types/components/button/src/button.vue.d.ts +3 -3
- package/types/components/feedback/index.d.ts +4 -4
- package/types/components/feedback/src/bmAlert.vue.d.ts +2 -2
- package/types/components/feedback/src/bmModal.vue.d.ts +2 -2
- package/types/components/input-tags-display/index.d.ts +42 -1
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +42 -1
- package/types/components/search-filter/index.d.ts +40 -16
- package/types/components/search-filter/src/search-filter.d.ts +24 -4
- package/types/components/search-filter/src/search-filter.vue.d.ts +40 -16
- package/types/components/search-filter/src/search-reset-btn.vue.d.ts +39 -0
- package/types/components/staffs-selector/index.d.ts +1 -1
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -1
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +1 -1
- package/types/components/upload/index.d.ts +1 -0
- package/types/components/upload/src/upload.vue.d.ts +1 -0
|
@@ -8,6 +8,18 @@ export declare const searchResetBtnProps: {
|
|
|
8
8
|
type: BooleanConstructor;
|
|
9
9
|
default: boolean;
|
|
10
10
|
};
|
|
11
|
+
expandPlacement: {
|
|
12
|
+
type: PropType<"left" | "right">;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
expandText: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
collapseText: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
11
23
|
};
|
|
12
24
|
export declare const searchFilterProps: {
|
|
13
25
|
showExpandBtn: {
|
|
@@ -18,6 +30,18 @@ export declare const searchFilterProps: {
|
|
|
18
30
|
type: BooleanConstructor;
|
|
19
31
|
default: boolean;
|
|
20
32
|
};
|
|
33
|
+
expandPlacement: {
|
|
34
|
+
type: PropType<"left" | "right">;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
expandText: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
collapseText: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
21
45
|
userRule: {
|
|
22
46
|
type: ArrayConstructor;
|
|
23
47
|
default(): never[];
|
|
@@ -48,10 +72,6 @@ export declare const searchFilterProps: {
|
|
|
48
72
|
type: PropType<string[]>;
|
|
49
73
|
default(): never[];
|
|
50
74
|
};
|
|
51
|
-
expandPlacement: {
|
|
52
|
-
type: PropType<"left" | "right">;
|
|
53
|
-
default: string;
|
|
54
|
-
};
|
|
55
75
|
};
|
|
56
76
|
export declare type SerachFilterProps = ExtractPropTypes<typeof searchFilterProps>;
|
|
57
77
|
export declare type SearchResetBtnProps = ExtractPropTypes<typeof searchResetBtnProps>;
|
|
@@ -7,6 +7,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: BooleanConstructor;
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
|
+
expandPlacement: {
|
|
11
|
+
type: import("vue").PropType<"left" | "right">;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
expandText: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
collapseText: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
10
22
|
userRule: {
|
|
11
23
|
type: ArrayConstructor;
|
|
12
24
|
default(): never[];
|
|
@@ -37,10 +49,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
49
|
type: import("vue").PropType<string[]>;
|
|
38
50
|
default(): never[];
|
|
39
51
|
};
|
|
40
|
-
expandPlacement: {
|
|
41
|
-
type: import("vue").PropType<"left" | "right">;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
52
|
}, {
|
|
45
53
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
46
54
|
showExpandBtn: {
|
|
@@ -51,6 +59,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
59
|
type: BooleanConstructor;
|
|
52
60
|
default: boolean;
|
|
53
61
|
};
|
|
62
|
+
expandPlacement: {
|
|
63
|
+
type: import("vue").PropType<"left" | "right">;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
expandText: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
collapseText: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
54
74
|
userRule: {
|
|
55
75
|
type: ArrayConstructor;
|
|
56
76
|
default(): never[];
|
|
@@ -81,10 +101,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
101
|
type: import("vue").PropType<string[]>;
|
|
82
102
|
default(): never[];
|
|
83
103
|
};
|
|
84
|
-
expandPlacement: {
|
|
85
|
-
type: import("vue").PropType<"left" | "right">;
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
104
|
}>> & {
|
|
89
105
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
90
106
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
@@ -114,9 +130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
114
130
|
gutter: unknown[];
|
|
115
131
|
};
|
|
116
132
|
form: {
|
|
117
|
-
labelCol:
|
|
118
|
-
[x: string]: any;
|
|
119
|
-
};
|
|
133
|
+
labelCol: Record<string, any>;
|
|
120
134
|
labelAlign: string;
|
|
121
135
|
wrapperCol: {
|
|
122
136
|
span: number;
|
|
@@ -139,6 +153,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
139
153
|
type: BooleanConstructor;
|
|
140
154
|
default: boolean;
|
|
141
155
|
};
|
|
156
|
+
expandPlacement: {
|
|
157
|
+
type: import("vue").PropType<"left" | "right">;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
expandText: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
collapseText: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
142
168
|
userRule: {
|
|
143
169
|
type: ArrayConstructor;
|
|
144
170
|
default(): never[];
|
|
@@ -169,10 +195,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
169
195
|
type: import("vue").PropType<string[]>;
|
|
170
196
|
default(): never[];
|
|
171
197
|
};
|
|
172
|
-
expandPlacement: {
|
|
173
|
-
type: import("vue").PropType<"left" | "right">;
|
|
174
|
-
default: string;
|
|
175
|
-
};
|
|
176
198
|
}>> & {
|
|
177
199
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
178
200
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
@@ -182,12 +204,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
182
204
|
value: Record<string, any>;
|
|
183
205
|
showExpandBtn: boolean;
|
|
184
206
|
showSearchIcon: boolean;
|
|
207
|
+
expandPlacement: "left" | "right";
|
|
208
|
+
expandText: string;
|
|
209
|
+
collapseText: string;
|
|
185
210
|
userRule: unknown[];
|
|
186
211
|
labelCol: Record<string, any>;
|
|
187
212
|
ruleSpan: Record<string, any>;
|
|
188
213
|
gutter: unknown[];
|
|
189
214
|
fixedCount: number;
|
|
190
215
|
fixedFields: string[];
|
|
191
|
-
expandPlacement: "left" | "right";
|
|
192
216
|
}>;
|
|
193
217
|
export default _default;
|
|
@@ -7,6 +7,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: BooleanConstructor;
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
|
+
expandPlacement: {
|
|
11
|
+
type: import("vue").PropType<"left" | "right">;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
expandText: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
collapseText: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
10
22
|
}, {
|
|
11
23
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
12
24
|
showExpandBtn: {
|
|
@@ -17,6 +29,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
29
|
type: BooleanConstructor;
|
|
18
30
|
default: boolean;
|
|
19
31
|
};
|
|
32
|
+
expandPlacement: {
|
|
33
|
+
type: import("vue").PropType<"left" | "right">;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
expandText: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
collapseText: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
20
44
|
}>> & {
|
|
21
45
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
22
46
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
@@ -39,6 +63,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
63
|
type: BooleanConstructor;
|
|
40
64
|
default: boolean;
|
|
41
65
|
};
|
|
66
|
+
expandPlacement: {
|
|
67
|
+
type: import("vue").PropType<"left" | "right">;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
expandText: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
collapseText: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
42
78
|
}>> & {
|
|
43
79
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
44
80
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
@@ -46,5 +82,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
82
|
}, {
|
|
47
83
|
showExpandBtn: boolean;
|
|
48
84
|
showSearchIcon: boolean;
|
|
85
|
+
expandPlacement: "left" | "right";
|
|
86
|
+
expandText: string;
|
|
87
|
+
collapseText: string;
|
|
49
88
|
}>;
|
|
50
89
|
export default _default;
|
|
@@ -98,9 +98,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
98
98
|
title: string;
|
|
99
99
|
visible: boolean;
|
|
100
100
|
mode: string;
|
|
101
|
+
unitStr: string;
|
|
101
102
|
showCount: boolean;
|
|
102
103
|
limit: number;
|
|
103
|
-
unitStr: string;
|
|
104
104
|
load: Function;
|
|
105
105
|
forceStatic: boolean;
|
|
106
106
|
immediateFetch: boolean;
|
|
@@ -86,12 +86,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
86
86
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
87
87
|
}, {
|
|
88
88
|
list: unknown[];
|
|
89
|
+
unitStr: string;
|
|
89
90
|
showCount: boolean;
|
|
90
91
|
selected: unknown[];
|
|
91
92
|
limit: number;
|
|
92
93
|
dataMap: Map<unknown, unknown>;
|
|
93
94
|
isTree: boolean;
|
|
94
95
|
curlistKeys: Set<unknown>;
|
|
95
|
-
unitStr: string;
|
|
96
96
|
}>;
|
|
97
97
|
export default _default;
|
|
@@ -98,9 +98,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
98
98
|
title: string;
|
|
99
99
|
visible: boolean;
|
|
100
100
|
mode: string;
|
|
101
|
+
unitStr: string;
|
|
101
102
|
showCount: boolean;
|
|
102
103
|
limit: number;
|
|
103
|
-
unitStr: string;
|
|
104
104
|
load: Function;
|
|
105
105
|
forceStatic: boolean;
|
|
106
106
|
immediateFetch: boolean;
|
|
@@ -75,6 +75,7 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
|
|
|
75
75
|
emit: any;
|
|
76
76
|
}): {
|
|
77
77
|
uploadDisabled: import("vue").ComputedRef<boolean>;
|
|
78
|
+
updateUploadProgress(file: any, progress: any): void;
|
|
78
79
|
customUploadRequest(file: any): void;
|
|
79
80
|
fileIsDelete(file: any): boolean;
|
|
80
81
|
uploadSuccess(data: any, file: any): void;
|
|
@@ -1363,18 +1363,29 @@ const _sfc_main = {
|
|
|
1363
1363
|
setup(props, { emit }) {
|
|
1364
1364
|
let acceptList = [
|
|
1365
1365
|
".xlsx",
|
|
1366
|
+
".XLSX",
|
|
1366
1367
|
".pdf",
|
|
1368
|
+
".PDF",
|
|
1367
1369
|
".doc",
|
|
1370
|
+
".DOC",
|
|
1368
1371
|
".docx",
|
|
1372
|
+
".DOCX",
|
|
1369
1373
|
".jpg",
|
|
1370
|
-
".jpeg",
|
|
1371
1374
|
".JPG",
|
|
1375
|
+
".jpeg",
|
|
1376
|
+
".JPEG",
|
|
1372
1377
|
".png",
|
|
1378
|
+
".PNG",
|
|
1373
1379
|
".rar",
|
|
1380
|
+
".RAR",
|
|
1374
1381
|
".zip",
|
|
1382
|
+
".ZIP",
|
|
1375
1383
|
".ppt",
|
|
1384
|
+
".PPT",
|
|
1376
1385
|
".pptx",
|
|
1377
|
-
".
|
|
1386
|
+
".PPTX",
|
|
1387
|
+
".mp4",
|
|
1388
|
+
".MP4"
|
|
1378
1389
|
];
|
|
1379
1390
|
const state = vue.reactive({
|
|
1380
1391
|
uploadBarColor: "#4DA0FF",
|
|
@@ -1437,26 +1448,26 @@ const _sfc_main = {
|
|
|
1437
1448
|
}
|
|
1438
1449
|
});
|
|
1439
1450
|
const methods = {
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
state.fileList[file.uid]
|
|
1446
|
-
|
|
1447
|
-
progress
|
|
1448
|
-
};
|
|
1451
|
+
updateUploadProgress(file, progress) {
|
|
1452
|
+
if (methods.fileIsDelete(file)) {
|
|
1453
|
+
return;
|
|
1454
|
+
}
|
|
1455
|
+
state.fileList[file.uid] = {
|
|
1456
|
+
...state.fileList[file.uid],
|
|
1457
|
+
progress
|
|
1449
1458
|
};
|
|
1459
|
+
},
|
|
1460
|
+
customUploadRequest(file) {
|
|
1450
1461
|
props.uploadRequest?.(file, {
|
|
1451
1462
|
onUploadProgress: (e) => {
|
|
1452
1463
|
let progress = Math.round(e.loaded / e.total * 100);
|
|
1453
1464
|
if (props.holdProgress) {
|
|
1454
1465
|
progress = progress > props.holdProgress ? props.holdProgress : progress;
|
|
1455
1466
|
}
|
|
1456
|
-
updateUploadProgress(progress);
|
|
1467
|
+
methods.updateUploadProgress(file, progress);
|
|
1457
1468
|
}
|
|
1458
1469
|
}).then(function(data) {
|
|
1459
|
-
updateUploadProgress(100);
|
|
1470
|
+
methods.updateUploadProgress(file, 100);
|
|
1460
1471
|
methods.uploadSuccess(data, file);
|
|
1461
1472
|
}).catch(function(error) {
|
|
1462
1473
|
console.error(error);
|
|
@@ -1474,6 +1485,7 @@ const _sfc_main = {
|
|
|
1474
1485
|
return;
|
|
1475
1486
|
}
|
|
1476
1487
|
emit("successFile", data);
|
|
1488
|
+
state.fileList[file.uid].status = "success";
|
|
1477
1489
|
let uri = data?.url;
|
|
1478
1490
|
let item = state.extraConfigs.fileDetail ? {
|
|
1479
1491
|
name: file.name,
|
|
@@ -1488,10 +1500,10 @@ const _sfc_main = {
|
|
|
1488
1500
|
emit("update", state.uploadedList);
|
|
1489
1501
|
},
|
|
1490
1502
|
uploadError(error, file = {}) {
|
|
1491
|
-
if (
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1503
|
+
if (file) {
|
|
1504
|
+
if (methods.fileIsDelete(file)) {
|
|
1505
|
+
return;
|
|
1506
|
+
}
|
|
1495
1507
|
state.fileList[file.uid].status = "error";
|
|
1496
1508
|
}
|
|
1497
1509
|
emit("error", error);
|
|
@@ -1511,7 +1523,7 @@ const _sfc_main = {
|
|
|
1511
1523
|
state.onepViewImageHover[uid] = false;
|
|
1512
1524
|
},
|
|
1513
1525
|
viewOnePicture(item) {
|
|
1514
|
-
if (["img", "image", "png", "jpg", "jpeg"].includes(item.type.toLowerCase())) {
|
|
1526
|
+
if (["img", "image", "png", "PNG", "jpg", "JPG", "jpeg", "JPEG"].includes(item.type.toLowerCase())) {
|
|
1515
1527
|
state.previewVisible = true;
|
|
1516
1528
|
state.onepViewImage = item;
|
|
1517
1529
|
return;
|
|
@@ -1742,13 +1754,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1742
1754
|
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
1743
1755
|
onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
|
|
1744
1756
|
}, [
|
|
1745
|
-
["pdf", "application/pdf"].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
1757
|
+
["pdf", "PDF", "application/pdf"].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
1746
1758
|
key: 0,
|
|
1747
1759
|
class: "bm-upload__picture-result__image",
|
|
1748
1760
|
src: $setup.icons.pdf,
|
|
1749
1761
|
alt: "avatar"
|
|
1750
1762
|
}, null, 8, _hoisted_4)) : [
|
|
1751
1763
|
"xlsx",
|
|
1764
|
+
"XLSX",
|
|
1752
1765
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
1753
1766
|
].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
1754
1767
|
key: 1,
|
|
@@ -1757,8 +1770,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1757
1770
|
alt: "avatar"
|
|
1758
1771
|
}, null, 8, _hoisted_5)) : [
|
|
1759
1772
|
"ppt",
|
|
1773
|
+
"PPT",
|
|
1760
1774
|
"application/vnd.ms-powerpoint",
|
|
1761
1775
|
"pptx",
|
|
1776
|
+
"PPTX",
|
|
1762
1777
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
1763
1778
|
].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
1764
1779
|
key: 2,
|
|
@@ -1767,8 +1782,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1767
1782
|
alt: "avatar"
|
|
1768
1783
|
}, null, 8, _hoisted_6)) : [
|
|
1769
1784
|
"doc",
|
|
1785
|
+
"DOC",
|
|
1770
1786
|
"application/msword",
|
|
1771
1787
|
"docx",
|
|
1788
|
+
"DOCX",
|
|
1772
1789
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
1773
1790
|
].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
1774
1791
|
key: 3,
|
|
@@ -1779,11 +1796,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1779
1796
|
"img",
|
|
1780
1797
|
"image",
|
|
1781
1798
|
"png",
|
|
1799
|
+
"PNG",
|
|
1782
1800
|
"image/png",
|
|
1783
1801
|
"jpg",
|
|
1802
|
+
"JPG",
|
|
1784
1803
|
"jpeg",
|
|
1804
|
+
"JPEG",
|
|
1785
1805
|
"image/jpeg",
|
|
1786
1806
|
"gif",
|
|
1807
|
+
"GIF",
|
|
1787
1808
|
"image/gif"
|
|
1788
1809
|
].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
1789
1810
|
key: 4,
|
|
@@ -1812,7 +1833,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1812
1833
|
key: 1,
|
|
1813
1834
|
file: item
|
|
1814
1835
|
})
|
|
1815
|
-
],
|
|
1836
|
+
], 64)) : vue.createCommentVNode("v-if", true),
|
|
1816
1837
|
vue.createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
|
|
1817
1838
|
item.status === "error" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1818
1839
|
key: 2,
|
|
@@ -1858,7 +1879,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1858
1879
|
}, 8, ["class", "disabled"]),
|
|
1859
1880
|
_ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_23, vue.toDisplayString(_ctx.extraConfigs.tips), 1)) : vue.createCommentVNode("v-if", true)
|
|
1860
1881
|
])) : vue.createCommentVNode("v-if", true)
|
|
1861
|
-
],
|
|
1882
|
+
], 64))
|
|
1862
1883
|
]),
|
|
1863
1884
|
_: 3
|
|
1864
1885
|
}, 16, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
@@ -1912,7 +1933,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1912
1933
|
}, {
|
|
1913
1934
|
default: vue.withCtx(() => [
|
|
1914
1935
|
vue.createElementVNode("div", _hoisted_32, [
|
|
1915
|
-
[
|
|
1936
|
+
[
|
|
1937
|
+
"img",
|
|
1938
|
+
"image",
|
|
1939
|
+
"png",
|
|
1940
|
+
"PNG",
|
|
1941
|
+
"jpg",
|
|
1942
|
+
"JPG",
|
|
1943
|
+
"jpeg",
|
|
1944
|
+
"JPEG"
|
|
1945
|
+
].includes(_ctx.onepViewImage.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
1916
1946
|
key: 0,
|
|
1917
1947
|
style: { "width": "100%" },
|
|
1918
1948
|
src: _ctx.onepViewImage.url,
|
|
@@ -75,6 +75,7 @@ declare const _default: {
|
|
|
75
75
|
emit: any;
|
|
76
76
|
}): {
|
|
77
77
|
uploadDisabled: import("vue").ComputedRef<boolean>;
|
|
78
|
+
updateUploadProgress(file: any, progress: any): void;
|
|
78
79
|
customUploadRequest(file: any): void;
|
|
79
80
|
fileIsDelete(file: any): boolean;
|
|
80
81
|
uploadSuccess(data: any, file: any): void;
|