meixioacomponent 0.3.67 → 0.3.68
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/package.json
CHANGED
|
@@ -69,15 +69,14 @@
|
|
|
69
69
|
</template>
|
|
70
70
|
</el-form-item>
|
|
71
71
|
</div>
|
|
72
|
-
|
|
73
|
-
<baseButtonHandleVue
|
|
74
|
-
v-if="footer"
|
|
75
|
-
:align="`end`"
|
|
76
|
-
:size="`mini`"
|
|
77
|
-
class="form-footer"
|
|
78
|
-
:config="handleConfig"
|
|
79
|
-
></baseButtonHandleVue>
|
|
80
72
|
</el-form>
|
|
73
|
+
<baseButtonHandleVue
|
|
74
|
+
v-if="footer"
|
|
75
|
+
:align="`end`"
|
|
76
|
+
:size="`mini`"
|
|
77
|
+
class="form-footer"
|
|
78
|
+
:config="handleConfig"
|
|
79
|
+
></baseButtonHandleVue>
|
|
81
80
|
|
|
82
81
|
<div class="form-skeleton-wrap" v-else>
|
|
83
82
|
<div
|
|
@@ -367,7 +366,25 @@ export default {
|
|
|
367
366
|
},
|
|
368
367
|
|
|
369
368
|
disableWatcherResult(params) {
|
|
370
|
-
this.$
|
|
369
|
+
const isBaseDialogForm = this.$parent.$options.name == 'baseDialogForm'
|
|
370
|
+
if (isBaseDialogForm) {
|
|
371
|
+
this.$emit('disableWatcherResult', params)
|
|
372
|
+
} else {
|
|
373
|
+
const { result, type, key } = params
|
|
374
|
+
|
|
375
|
+
const index = this.module.findIndex((item) => {
|
|
376
|
+
return item.key == key
|
|
377
|
+
})
|
|
378
|
+
|
|
379
|
+
if (index > -1) {
|
|
380
|
+
const formItem = this.module[index]
|
|
381
|
+
if (type == 'hide') {
|
|
382
|
+
this.$set(formItem, 'renderHide', result)
|
|
383
|
+
} else if (type == 'disable') {
|
|
384
|
+
this.$set(formItem, 'disabled', result)
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
371
388
|
},
|
|
372
389
|
|
|
373
390
|
setFormItemWidth() {
|
|
@@ -445,6 +462,7 @@ export default {
|
|
|
445
462
|
align-items: flex-start;
|
|
446
463
|
}
|
|
447
464
|
.form-footer {
|
|
465
|
+
padding: var(--padding-5);
|
|
448
466
|
margin-top: var(--margin-5);
|
|
449
467
|
}
|
|
450
468
|
|
package/src/component/test.vue
CHANGED
|
@@ -819,7 +819,7 @@ export default {
|
|
|
819
819
|
<template>
|
|
820
820
|
<base-form-wrap
|
|
821
821
|
:rowNumber="2"
|
|
822
|
-
:
|
|
822
|
+
:disables="disables"
|
|
823
823
|
:labelWidth="`155px`"
|
|
824
824
|
ref="businessBaseForm"
|
|
825
825
|
:formTitle="`dsada`"
|
|
@@ -845,7 +845,7 @@ export default {
|
|
|
845
845
|
label: '法人身份证',
|
|
846
846
|
},
|
|
847
847
|
{
|
|
848
|
-
value:
|
|
848
|
+
value: 1,
|
|
849
849
|
key: 'businessLicense',
|
|
850
850
|
type: 'select',
|
|
851
851
|
label: '营业执照号',
|
|
@@ -858,6 +858,19 @@ export default {
|
|
|
858
858
|
label: '营业执照电子版',
|
|
859
859
|
},
|
|
860
860
|
],
|
|
861
|
+
disables: {
|
|
862
|
+
businessLicense: {
|
|
863
|
+
effects: [
|
|
864
|
+
{
|
|
865
|
+
key: 'businessLicenseFile',
|
|
866
|
+
type: 'hide',
|
|
867
|
+
fn: (val) => {
|
|
868
|
+
return val == 2
|
|
869
|
+
},
|
|
870
|
+
},
|
|
871
|
+
],
|
|
872
|
+
},
|
|
873
|
+
},
|
|
861
874
|
}
|
|
862
875
|
},
|
|
863
876
|
}
|