t20-common-lib 0.15.7 → 0.15.9
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
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
:disabled="item.isEditable === 0"
|
|
38
38
|
:label.sync="formData[group.prop][item.nameProp]"
|
|
39
39
|
v-bind="item.props"
|
|
40
|
+
@dialogChange="obj => $emit('dialog-change', { obj: obj || {}, groupProp: group.prop, item, group })"
|
|
40
41
|
/>
|
|
41
42
|
<slot
|
|
42
43
|
v-else-if="item.elementType === 'SLOT_ELEMENT'"
|
|
@@ -389,6 +390,10 @@ export default {
|
|
|
389
390
|
})
|
|
390
391
|
})
|
|
391
392
|
this.$nextTick(() => {
|
|
393
|
+
// linkageMethod 过程中可能改写显隐/必填规则,统一清理校验态,避免联动触发页面校验提示。
|
|
394
|
+
if (this.$refs.dynamicForms && typeof this.$refs.dynamicForms.clearValidate === 'function') {
|
|
395
|
+
this.$refs.dynamicForms.clearValidate()
|
|
396
|
+
}
|
|
392
397
|
this.isApplyingLinkage = false
|
|
393
398
|
})
|
|
394
399
|
},
|
|
@@ -396,7 +401,9 @@ export default {
|
|
|
396
401
|
async submit() {
|
|
397
402
|
const valid = await this.$refs.dynamicForms.validate()
|
|
398
403
|
if (!valid) return
|
|
399
|
-
this.$
|
|
404
|
+
this.$emit('submit', {
|
|
405
|
+
formData: this.formData
|
|
406
|
+
})
|
|
400
407
|
}
|
|
401
408
|
}
|
|
402
409
|
}
|