From 5425dc69fe6d89e17c57ba90950d8e6faf96bbdf Mon Sep 17 00:00:00 2001 From: luckyCao Date: Fri, 19 Apr 2019 15:17:45 +0800 Subject: [PATCH] Form: fix switching the rules in el-form not work (#14985) (#15017) --- packages/form/src/form-item.vue | 24 +++++++++++++++--------- packages/form/src/form.vue | 6 ++++++ 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/packages/form/src/form-item.vue b/packages/form/src/form-item.vue index 800dfc33..e9e3f0c5 100644 --- a/packages/form/src/form-item.vue +++ b/packages/form/src/form-item.vue @@ -19,9 +19,9 @@
-
{ + field.removeValidateEvents(); + field.addValidateEvents(); + }); + if (this.validateOnRuleChange) { this.validate(() => {}); }