sadais-piui 1.2.7-beta3 → 1.2.7-beta4

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.
@@ -184,6 +184,8 @@ export default {
184
184
  })
185
185
  this.val = vals
186
186
  this.handleEmitChange()
187
+ this.dispatch('PiForm', 'form-change', this.val)
188
+ this.dispatch('PiFormItem', 'form-change', this.val)
187
189
  }
188
190
  }
189
191
  }
@@ -449,7 +449,10 @@ export default {
449
449
  resolve(_getResolve())
450
450
  })
451
451
  .catch(({ errors, fields }) => {
452
- console.log(TAG, '表单校验失败', this.prop, errors, fields)
452
+ console.log(TAG, '表单校验失败', `字段名:${this.prop},字段值:${fieldValue}`)
453
+ console.log(TAG, '字段值:', fieldValue)
454
+ console.log(TAG, '错误信息', errors)
455
+ console.log(TAG, '校验规则', fields)
453
456
  // 记录状态和报错信息
454
457
  this.validateState = 'error'
455
458
  this.validateMessage = errors ? errors[0].message : ''
@@ -328,8 +328,8 @@ export default {
328
328
  handleChange(value) {
329
329
  this.val = value
330
330
  this.handleEmitChange()
331
- this.dispatch('PiForm', 'form-change', value)
332
- this.dispatch('PiFormItem', 'form-change', value)
331
+ this.dispatch('PiForm', 'form-change', this.val)
332
+ this.dispatch('PiFormItem', 'form-change', this.val)
333
333
  }
334
334
  }
335
335
  }
@@ -181,6 +181,8 @@ export default {
181
181
  this.val = childName
182
182
  }
183
183
  this.handleEmitChange()
184
+ this.dispatch('PiForm', 'form-change', this.val)
185
+ this.dispatch('PiFormItem', 'form-change', this.val)
184
186
  }
185
187
  }
186
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.7beta3",
3
+ "version": "1.2.7beta4",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {