meixioacomponent 0.2.94 → 0.2.97
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/lib/meixioacomponent.common.js +172 -161
- package/lib/meixioacomponent.umd.js +172 -161
- package/lib/meixioacomponent.umd.min.js +11 -11
- package/package.json +1 -1
- package/packages/components/base/baseUpload/baseUploadItem.vue +2 -1
- package/packages/components/base/baseUpload/mixins.js +6 -4
- package/packages/components/base/upload/upload.vue +3 -0
- package/packages/components/proPageTable/oa_pro_colum_config.vue +1 -1
- package/packages/config/use/UseUpload.js +5 -5
package/package.json
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
:multiple="uploadType == 'single' ? false : true"
|
|
16
16
|
/>
|
|
17
17
|
<base-icon
|
|
18
|
+
:size="`l`"
|
|
18
19
|
:color="`s`"
|
|
19
20
|
:event="true"
|
|
20
|
-
:size="`l`"
|
|
21
21
|
class="upload-icon"
|
|
22
22
|
v-if="!isUploadProImg"
|
|
23
23
|
@iconClick="clickFile"
|
|
@@ -195,6 +195,7 @@ export default {
|
|
|
195
195
|
},
|
|
196
196
|
|
|
197
197
|
async onPasteFile() {
|
|
198
|
+
if (this.uploadLoading) return;
|
|
198
199
|
const items = (event.clipboardData || window.clipboardData).items;
|
|
199
200
|
const rowList = [];
|
|
200
201
|
if (this.fileType == "img") {
|
|
@@ -33,23 +33,25 @@ export const baseUploadMixins = {
|
|
|
33
33
|
this.$message.error("超出文件上传限制");
|
|
34
34
|
break;
|
|
35
35
|
}
|
|
36
|
+
list[i].cb = this.uploadEd;
|
|
36
37
|
this.module.push(list[i]);
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
const { uploadPath } = this.$props;
|
|
40
41
|
|
|
41
42
|
componentConfig.setUploadUrl(uploadPath[0], uploadPath[1]);
|
|
42
|
-
|
|
43
|
+
|
|
43
44
|
if (!this.uploadLoading) {
|
|
44
|
-
useUpload.toUpload(
|
|
45
|
+
useUpload.toUpload(
|
|
46
|
+
this.module ? this.module : list,
|
|
47
|
+
this.isGroup ? this.uploadEd : null
|
|
48
|
+
);
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
this.uploadLoading = true;
|
|
48
52
|
},
|
|
49
53
|
|
|
50
54
|
uploadEd(list) {
|
|
51
|
-
//console.log(list);
|
|
52
|
-
//console.log(this.module);
|
|
53
55
|
this.module = list;
|
|
54
56
|
this.uploadLoading = false;
|
|
55
57
|
this.$emit("uploadEd", list);
|
|
@@ -10,10 +10,10 @@ class UseUpload {
|
|
|
10
10
|
if (this.dynamicMount) {
|
|
11
11
|
this.appendUploadItem(uploadList);
|
|
12
12
|
} else {
|
|
13
|
-
this.
|
|
13
|
+
this.dynamicMount = new DynamicMount({
|
|
14
14
|
componentProps: {
|
|
15
15
|
uploadEdEvent: (list) => {
|
|
16
|
-
this.uploadEd();
|
|
16
|
+
this.uploadEd(list);
|
|
17
17
|
if (cb) {
|
|
18
18
|
cb(list);
|
|
19
19
|
}
|
|
@@ -22,13 +22,13 @@ class UseUpload {
|
|
|
22
22
|
},
|
|
23
23
|
vueComponent: uploadVue,
|
|
24
24
|
});
|
|
25
|
-
this.
|
|
25
|
+
this.dynamicMount.init();
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
uploadEd() {
|
|
29
|
+
uploadEd(list) {
|
|
30
30
|
setTimeout(() => {
|
|
31
|
-
let component = this.
|
|
31
|
+
let component = this.dynamicMount.getComponent();
|
|
32
32
|
component.$destroy();
|
|
33
33
|
this.dynamicMount = null;
|
|
34
34
|
}, 3000);
|