From 5b74eadbb41459509bb2f25bf9172da64bbc0bc3 Mon Sep 17 00:00:00 2001 From: hansi90 Date: Wed, 11 Oct 2017 15:02:11 +0200 Subject: [PATCH] New field: file upload (fieldFile). --- src/fields/core/fieldFile.vue | 45 +++++++++++++++++++++++++++ src/fields/core/fieldInput.vue | 57 +++++++++++++++++----------------- 2 files changed, 73 insertions(+), 29 deletions(-) create mode 100644 src/fields/core/fieldFile.vue diff --git a/src/fields/core/fieldFile.vue b/src/fields/core/fieldFile.vue new file mode 100644 index 00000000..1cae4969 --- /dev/null +++ b/src/fields/core/fieldFile.vue @@ -0,0 +1,45 @@ + + + + + diff --git a/src/fields/core/fieldInput.vue b/src/fields/core/fieldInput.vue index 7ba183f9..972efc8f 100644 --- a/src/fields/core/fieldInput.vue +++ b/src/fields/core/fieldInput.vue @@ -5,7 +5,7 @@ :type="schema.inputType", :value="value", @input="value = $event.target.value", - @change="onChange", + @change="schema.onChange || null", :disabled="disabled", :accept="schema.accept", :alt="schema.alt", @@ -37,22 +37,17 @@