feat(component): new file-input component (#166)
* file input field * input file * empty lines * dropzone value update * dropzone value update * fix drag and drop * Update docs/components/fileInput.md Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com> * Update docs/components/fileInput/examples/FileInpDropZone.vue Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com> * Update src/components/FileInput/FileInput.vue Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com> * Update src/components/FileInput/FileInput.vue Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com> * Update src/components/FileInput/FileInput.vue Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com> * Update src/components/FileInput/FileInput.vue Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com> * multiple files and file type --------- Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com>
This commit is contained in:
14
docs/components/fileInput/examples/FileInpDropZone.vue
Normal file
14
docs/components/fileInput/examples/FileInpDropZone.vue
Normal file
@@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<FileInput v-model="file" :dropzone="true">
|
||||
<p class="!mt-1 text-xs text-gray-500 dark:text-gray-400">
|
||||
SVG, PNG, JPG or GIF (MAX. 800x400px)
|
||||
</p>
|
||||
</FileInput>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import FileInput from '../../../../src/components/FileInput/FileInput.vue'
|
||||
import { ref } from 'vue'
|
||||
|
||||
const file = ref('')
|
||||
</script>
|
||||
Reference in New Issue
Block a user