From 4297e7395b00b5b5dc5a46b3721ee9d637dfa409 Mon Sep 17 00:00:00 2001 From: Kabin Date: Fri, 17 Jan 2025 09:56:36 +0545 Subject: [PATCH] feat: add multiple and dropzone demo for file input --- apps/demo/src/locales/en/form.json | 3 + apps/demo/src/locales/fr/form.json | 3 + apps/demo/src/views/Form/fileInput/Index.vue | 60 ++++++++++++++++++++ 3 files changed, 66 insertions(+) diff --git a/apps/demo/src/locales/en/form.json b/apps/demo/src/locales/en/form.json index a7cccacd..8591258a 100644 --- a/apps/demo/src/locales/en/form.json +++ b/apps/demo/src/locales/en/form.json @@ -73,6 +73,8 @@ "disableWeekDays": "Disable week days", "disabledMultiSelect": "Disabled multiselect", "disableSort": "Disable alphabetical sorting", + "dropzone": "Dropzone", + "dropzoneOptions": "Dropzone Options", "editableContent": "Editable content", "email": "Email", "expiresAfter": "Expires after", @@ -97,6 +99,7 @@ "monthPicker": "Month picker", "multiCalendars": "Multicalendar", "multiCheckbox": "Multiple checkbox input", + "multiple": "Multiple files", "multiSelect": "Multiselect", "next": "Next", "number": "Number", diff --git a/apps/demo/src/locales/fr/form.json b/apps/demo/src/locales/fr/form.json index 5b07311d..14a21d60 100644 --- a/apps/demo/src/locales/fr/form.json +++ b/apps/demo/src/locales/fr/form.json @@ -70,6 +70,8 @@ "disabled": "Disabled[fr]", "disableWeekDays": "Disable week days[fr]", "disableSort": "Disable alphabetical sorting", + "dropzone": "Dropzone", + "dropzoneOptions": "Dropzone Options", "editableContent": "Editable content", "email": "Email[fr]", "expiresAfter": "Expires after", @@ -94,6 +96,7 @@ "monthPicker": "Month picker[fr]", "multiCalendars": "Multicalendar[fr]", "multiCheckbox": "Multiple checkbox input", + "multiple": "Multiple files", "multiSelect": "Multiselect[fr]", "next": "Next", "number": "Number[fr]", diff --git a/apps/demo/src/views/Form/fileInput/Index.vue b/apps/demo/src/views/Form/fileInput/Index.vue index 86c06db3..57ffe8df 100644 --- a/apps/demo/src/views/Form/fileInput/Index.vue +++ b/apps/demo/src/views/Form/fileInput/Index.vue @@ -45,6 +45,66 @@ + +
+

{{ $t("form.label.dropzoneOptions") }}

+ +
+ + + + + <template> + <FileInput input-method="dropzone" /> + </template> + + <script setup lang="ts"> + import { FileInput } from "@dzangolab/vue3-form"; + </script> + + +
+
+ +
+

{{ $t("form.label.multiple") }}

+ +
+ + + + + <template> + <FileInput input-method="dropzone" /> + </template> + + <script setup lang="ts"> + import { FileInput } from "@dzangolab/vue3-form"; + </script> + + +
+