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;
|
|
@@ -1359,18 +1359,29 @@ const _sfc_main = {
|
|
|
1359
1359
|
setup(props, { emit }) {
|
|
1360
1360
|
let acceptList = [
|
|
1361
1361
|
".xlsx",
|
|
1362
|
+
".XLSX",
|
|
1362
1363
|
".pdf",
|
|
1364
|
+
".PDF",
|
|
1363
1365
|
".doc",
|
|
1366
|
+
".DOC",
|
|
1364
1367
|
".docx",
|
|
1368
|
+
".DOCX",
|
|
1365
1369
|
".jpg",
|
|
1366
|
-
".jpeg",
|
|
1367
1370
|
".JPG",
|
|
1371
|
+
".jpeg",
|
|
1372
|
+
".JPEG",
|
|
1368
1373
|
".png",
|
|
1374
|
+
".PNG",
|
|
1369
1375
|
".rar",
|
|
1376
|
+
".RAR",
|
|
1370
1377
|
".zip",
|
|
1378
|
+
".ZIP",
|
|
1371
1379
|
".ppt",
|
|
1380
|
+
".PPT",
|
|
1372
1381
|
".pptx",
|
|
1373
|
-
".
|
|
1382
|
+
".PPTX",
|
|
1383
|
+
".mp4",
|
|
1384
|
+
".MP4"
|
|
1374
1385
|
];
|
|
1375
1386
|
const state = reactive({
|
|
1376
1387
|
uploadBarColor: "#4DA0FF",
|
|
@@ -1433,26 +1444,26 @@ const _sfc_main = {
|
|
|
1433
1444
|
}
|
|
1434
1445
|
});
|
|
1435
1446
|
const methods = {
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
state.fileList[file.uid]
|
|
1442
|
-
|
|
1443
|
-
progress
|
|
1444
|
-
};
|
|
1447
|
+
updateUploadProgress(file, progress) {
|
|
1448
|
+
if (methods.fileIsDelete(file)) {
|
|
1449
|
+
return;
|
|
1450
|
+
}
|
|
1451
|
+
state.fileList[file.uid] = {
|
|
1452
|
+
...state.fileList[file.uid],
|
|
1453
|
+
progress
|
|
1445
1454
|
};
|
|
1455
|
+
},
|
|
1456
|
+
customUploadRequest(file) {
|
|
1446
1457
|
props.uploadRequest?.(file, {
|
|
1447
1458
|
onUploadProgress: (e) => {
|
|
1448
1459
|
let progress = Math.round(e.loaded / e.total * 100);
|
|
1449
1460
|
if (props.holdProgress) {
|
|
1450
1461
|
progress = progress > props.holdProgress ? props.holdProgress : progress;
|
|
1451
1462
|
}
|
|
1452
|
-
updateUploadProgress(progress);
|
|
1463
|
+
methods.updateUploadProgress(file, progress);
|
|
1453
1464
|
}
|
|
1454
1465
|
}).then(function(data) {
|
|
1455
|
-
updateUploadProgress(100);
|
|
1466
|
+
methods.updateUploadProgress(file, 100);
|
|
1456
1467
|
methods.uploadSuccess(data, file);
|
|
1457
1468
|
}).catch(function(error) {
|
|
1458
1469
|
console.error(error);
|
|
@@ -1470,6 +1481,7 @@ const _sfc_main = {
|
|
|
1470
1481
|
return;
|
|
1471
1482
|
}
|
|
1472
1483
|
emit("successFile", data);
|
|
1484
|
+
state.fileList[file.uid].status = "success";
|
|
1473
1485
|
let uri = data?.url;
|
|
1474
1486
|
let item = state.extraConfigs.fileDetail ? {
|
|
1475
1487
|
name: file.name,
|
|
@@ -1484,10 +1496,10 @@ const _sfc_main = {
|
|
|
1484
1496
|
emit("update", state.uploadedList);
|
|
1485
1497
|
},
|
|
1486
1498
|
uploadError(error, file = {}) {
|
|
1487
|
-
if (
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1499
|
+
if (file) {
|
|
1500
|
+
if (methods.fileIsDelete(file)) {
|
|
1501
|
+
return;
|
|
1502
|
+
}
|
|
1491
1503
|
state.fileList[file.uid].status = "error";
|
|
1492
1504
|
}
|
|
1493
1505
|
emit("error", error);
|
|
@@ -1507,7 +1519,7 @@ const _sfc_main = {
|
|
|
1507
1519
|
state.onepViewImageHover[uid] = false;
|
|
1508
1520
|
},
|
|
1509
1521
|
viewOnePicture(item) {
|
|
1510
|
-
if (["img", "image", "png", "jpg", "jpeg"].includes(item.type.toLowerCase())) {
|
|
1522
|
+
if (["img", "image", "png", "PNG", "jpg", "JPG", "jpeg", "JPEG"].includes(item.type.toLowerCase())) {
|
|
1511
1523
|
state.previewVisible = true;
|
|
1512
1524
|
state.onepViewImage = item;
|
|
1513
1525
|
return;
|
|
@@ -1738,13 +1750,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1738
1750
|
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
1739
1751
|
onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
|
|
1740
1752
|
}, [
|
|
1741
|
-
["pdf", "application/pdf"].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
1753
|
+
["pdf", "PDF", "application/pdf"].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
1742
1754
|
key: 0,
|
|
1743
1755
|
class: "bm-upload__picture-result__image",
|
|
1744
1756
|
src: $setup.icons.pdf,
|
|
1745
1757
|
alt: "avatar"
|
|
1746
1758
|
}, null, 8, _hoisted_4)) : [
|
|
1747
1759
|
"xlsx",
|
|
1760
|
+
"XLSX",
|
|
1748
1761
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
1749
1762
|
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
1750
1763
|
key: 1,
|
|
@@ -1753,8 +1766,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1753
1766
|
alt: "avatar"
|
|
1754
1767
|
}, null, 8, _hoisted_5)) : [
|
|
1755
1768
|
"ppt",
|
|
1769
|
+
"PPT",
|
|
1756
1770
|
"application/vnd.ms-powerpoint",
|
|
1757
1771
|
"pptx",
|
|
1772
|
+
"PPTX",
|
|
1758
1773
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
1759
1774
|
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
1760
1775
|
key: 2,
|
|
@@ -1763,8 +1778,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1763
1778
|
alt: "avatar"
|
|
1764
1779
|
}, null, 8, _hoisted_6)) : [
|
|
1765
1780
|
"doc",
|
|
1781
|
+
"DOC",
|
|
1766
1782
|
"application/msword",
|
|
1767
1783
|
"docx",
|
|
1784
|
+
"DOCX",
|
|
1768
1785
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
1769
1786
|
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
1770
1787
|
key: 3,
|
|
@@ -1775,11 +1792,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1775
1792
|
"img",
|
|
1776
1793
|
"image",
|
|
1777
1794
|
"png",
|
|
1795
|
+
"PNG",
|
|
1778
1796
|
"image/png",
|
|
1779
1797
|
"jpg",
|
|
1798
|
+
"JPG",
|
|
1780
1799
|
"jpeg",
|
|
1800
|
+
"JPEG",
|
|
1781
1801
|
"image/jpeg",
|
|
1782
1802
|
"gif",
|
|
1803
|
+
"GIF",
|
|
1783
1804
|
"image/gif"
|
|
1784
1805
|
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
1785
1806
|
key: 4,
|
|
@@ -1808,7 +1829,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1808
1829
|
key: 1,
|
|
1809
1830
|
file: item
|
|
1810
1831
|
})
|
|
1811
|
-
],
|
|
1832
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1812
1833
|
createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
|
|
1813
1834
|
item.status === "error" ? (openBlock(), createElementBlock("div", {
|
|
1814
1835
|
key: 2,
|
|
@@ -1854,7 +1875,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1854
1875
|
}, 8, ["class", "disabled"]),
|
|
1855
1876
|
_ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString(_ctx.extraConfigs.tips), 1)) : createCommentVNode("v-if", true)
|
|
1856
1877
|
])) : createCommentVNode("v-if", true)
|
|
1857
|
-
],
|
|
1878
|
+
], 64))
|
|
1858
1879
|
]),
|
|
1859
1880
|
_: 3
|
|
1860
1881
|
}, 16, ["class"])) : createCommentVNode("v-if", true),
|
|
@@ -1908,7 +1929,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1908
1929
|
}, {
|
|
1909
1930
|
default: withCtx(() => [
|
|
1910
1931
|
createElementVNode("div", _hoisted_32, [
|
|
1911
|
-
[
|
|
1932
|
+
[
|
|
1933
|
+
"img",
|
|
1934
|
+
"image",
|
|
1935
|
+
"png",
|
|
1936
|
+
"PNG",
|
|
1937
|
+
"jpg",
|
|
1938
|
+
"JPG",
|
|
1939
|
+
"jpeg",
|
|
1940
|
+
"JPEG"
|
|
1941
|
+
].includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
|
|
1912
1942
|
key: 0,
|
|
1913
1943
|
style: { "width": "100%" },
|
|
1914
1944
|
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;
|