Replies: 4 comments 14 replies
-
onFormValidateEnd的时机不是所有字段独立校验完成的时机,因为字段如果自己单独输入,完全是另一套生命周期,跟Form一点关系没有,所以onFormValidateEnd只是form.submit/form.validate单独触发执行的时机 |
Beta Was this translation helpful? Give feedback.
-
具体说说是什么蜜汁关系 |
Beta Was this translation helpful? Give feedback.
-
实时保存就应该只消费onFieldValidateStart和onFieldValidateEnd |
Beta Was this translation helpful? Give feedback.
-
期望切实考虑下做实时保存的场景,怎么去处理form的值吧。 |
Beta Was this translation helpful? Give feedback.
-
#2512
应用场景:基于x-validator属性设置的异步校验会自动触发,我只想在onFormValidateEnd时,获取到校验通过后的表单项值。所以希望form.validating状态应该能够自动识别x-validator是否处于validating中的,同时onFormValidateEnd事件在validating由true变为false时候触发。
正如issue中提到的,现在x-validator的自动校验,form的validating状态,和onFormValidateEnd事件三者是分开的。
Beta Was this translation helpful? Give feedback.
All reactions