0.4.1 • Published 4 years ago

@salemcode8/vue-dropify v0.4.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

vue-dropify

npm license Build Status npm npm

Description

Dropify build for vuejs framework

vue-dropify package links :

  • npm
  • yarn

Getting Started

This packages still in Dev mode vue-dropify helps you to upload files with a simple pre-visual display.

Installing

npm i vue-dropify
yarn add vue-dropify

Usage

import VueDropify from 'vue-dropify';

export default {
  components: {
    'vue-dropify': VueDropify
  }
}

Attributes

namedefaultdescription
fullfalseBoolean // this attribute define if dopify zone is full width
sizenullString/Array // [minSize,maxSize] or 'maxSize'
unit'bk'String // Options are : ['b'(bytes),'kb'(kilobytes),'mb'(megabytes)]
width'auto'String // Width of dropify zone
height''String // Height of dropify zone
accept'image/*'String // The same option as <input type="file" />
messagenullString // Displayed message when no image is selected
multiplenullBoolean // To enable multiple file upload
uploadIcon''String // Icon className
removeIconnullString // Icon className

Actions

namedescription
@uploadtrigger when image is selected
@changewhen change happen to input file