meixioacomponent 0.2.96 → 0.2.99
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 +222 -210
- package/lib/meixioacomponent.umd.js +222 -210
- package/lib/meixioacomponent.umd.min.js +12 -12
- package/package.json +1 -1
- package/packages/components/base/baseUpload/baseUploadItem.vue +1 -0
- package/packages/components/base/baseUpload/mixins.js +5 -3
- package/packages/components/base/upload/upload.vue +3 -0
- package/packages/components/proForm/proForm/pro_form_item.vue +7 -3
- package/packages/components/proForm/proFormWrap/pro_form_wrap.vue +1 -1
- package/packages/config/use/UseUpload.js +2 -2
package/package.json
CHANGED
|
@@ -33,6 +33,7 @@ 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
|
}
|
|
@@ -41,15 +42,16 @@ export const baseUploadMixins = {
|
|
|
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);
|
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
}"
|
|
9
9
|
>
|
|
10
10
|
<div class="item-content" v-if="!isEdit">
|
|
11
|
-
<
|
|
11
|
+
<p
|
|
12
12
|
v-if="!spContentType"
|
|
13
13
|
class="content-value"
|
|
14
14
|
@click="handleClick('content')"
|
|
15
15
|
:class="[`${config.click ? 'click' : config.color}`]"
|
|
16
|
-
>{{ contentValue }}</span
|
|
17
16
|
>
|
|
17
|
+
{{ contentValue }}
|
|
18
|
+
</p>
|
|
18
19
|
|
|
19
20
|
<!-- 单选框 -->
|
|
20
21
|
<el-radio-group
|
|
@@ -459,7 +460,10 @@ export default {
|
|
|
459
460
|
visibility: hidden;
|
|
460
461
|
}
|
|
461
462
|
.content-value {
|
|
462
|
-
|
|
463
|
+
overflow: hidden;
|
|
464
|
+
white-space: nowrap;
|
|
465
|
+
// display: inline-block;
|
|
466
|
+
text-overflow: ellipsis;
|
|
463
467
|
color: var(--font-color-d);
|
|
464
468
|
font-size: var(--font-size-s);
|
|
465
469
|
font-weight: var(--font-weight-g);
|
|
@@ -110,7 +110,7 @@ export default {
|
|
|
110
110
|
async checkValidate() {
|
|
111
111
|
let refs = this.$refs.proForm;
|
|
112
112
|
let validateResult = true;
|
|
113
|
-
let validate = await refs
|
|
113
|
+
let validate = await refs.checkValidate();
|
|
114
114
|
validateResult = validate.result;
|
|
115
115
|
if (!validateResult) {
|
|
116
116
|
return validateResult;
|
|
@@ -13,7 +13,7 @@ class UseUpload {
|
|
|
13
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
|
}
|
|
@@ -26,7 +26,7 @@ class UseUpload {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
uploadEd() {
|
|
29
|
+
uploadEd(list) {
|
|
30
30
|
setTimeout(() => {
|
|
31
31
|
let component = this.dynamicMount.getComponent();
|
|
32
32
|
component.$destroy();
|