t20-common-lib 0.15.8 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "t20-common-lib",
3
- "version": "0.15.8",
3
+ "version": "0.15.9",
4
4
  "description": "T20",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -390,6 +390,10 @@ export default {
390
390
  })
391
391
  })
392
392
  this.$nextTick(() => {
393
+ // linkageMethod 过程中可能改写显隐/必填规则,统一清理校验态,避免联动触发页面校验提示。
394
+ if (this.$refs.dynamicForms && typeof this.$refs.dynamicForms.clearValidate === 'function') {
395
+ this.$refs.dynamicForms.clearValidate()
396
+ }
393
397
  this.isApplyingLinkage = false
394
398
  })
395
399
  },
@@ -397,7 +401,9 @@ export default {
397
401
  async submit() {
398
402
  const valid = await this.$refs.dynamicForms.validate()
399
403
  if (!valid) return
400
- this.$message.success(this.$lc('校验通过'))
404
+ this.$emit('submit', {
405
+ formData: this.formData
406
+ })
401
407
  }
402
408
  }
403
409
  }