From c82c44b342d67b39e3a8a78f9dc13fc594ca3f17 Mon Sep 17 00:00:00 2001 From: qduc159 Date: Mon, 8 Oct 2018 22:10:25 +0700 Subject: [PATCH] Fix fieldSubmit not calling validate method --- src/fields/abstractField.js | 2 +- src/fields/core/fieldSubmit.vue | 11 ++- src/formGenerator.vue | 5 +- src/formGroup.vue | 6 +- test/unit/specs/fields/fieldSubmit.spec.js | 90 +++++++++++++++++----- 5 files changed, 86 insertions(+), 28 deletions(-) diff --git a/src/fields/abstractField.js b/src/fields/abstractField.js index f0abe6af..b6019ad3 100644 --- a/src/fields/abstractField.js +++ b/src/fields/abstractField.js @@ -25,7 +25,7 @@ function attributesDirective(el, binding, vnode) { } export default { - props: ["model", "schema", "formOptions", "disabled"], + props: ["vfg", "model", "schema", "formOptions", "disabled"], data() { return { diff --git a/src/fields/core/fieldSubmit.vue b/src/fields/core/fieldSubmit.vue index b0d5ed56..30567928 100644 --- a/src/fields/core/fieldSubmit.vue +++ b/src/fields/core/fieldSubmit.vue @@ -4,7 +4,7 @@