1.0.3 • Published 7 years ago

vue-simple-upload-component v1.0.3

Weekly downloads
11
License
MIT
Repository
github
Last release
7 years ago

Vue Upload Component npm npm npm GitHub stars

A simple upload component for Vue.js 2.x

Instalation

npm install vue-simple-upload-component --save-dev

Usage example

<template>
  <div>
  	<upload-file @changed-files="uploadAction($event)"></upload-file>
  </div>
</template>

<script>
import UploadFile from 'vue-simple-upload-component'
export default {
	name: "MyComponent",
	components: {
		UploadFile
	}
}
</script>

Props

PropertiesDescription
messageDefault: Choose a file...Required: false It's used to indicate the upload zone.
dragOverMessageDefault: Drag it hereRequired: false Used when dragover event is dispatched
uploadedMessageDefault: emptyRequired: false Used to show a message when upload a file
showButtonDefault: falseRequired: false Show send button.
buttonTitleDefault: SendRequired: false Send button title/value
cancelButtonDefault: CancelRequired: false File cancel button
itemIndexDefault: 0Required: false Component index for multiples upload components
isDragDropDefault: falseRequired: false Enable/Disable Drag&Drop.
acceptedFormatsDefault: []Required: false Accepted MIME Types.

Events

EventDescription
send-fileCalled if drag&drop is inactive and user pressed the 'Send' button
changed-filesWhen files list's changed, added or removed a file.
selected-fileWhen a file is added (REMOVED)
remove-fileCalled when the actual file is removed (REMOVED)

Change Log

v1.0.0

Added support to multiple files Changed 'add' and 'remove' file methods.

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.5.5

8 years ago

0.5.43

8 years ago

0.5.42

8 years ago

0.5.41

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.29

8 years ago

0.5.28

8 years ago

0.5.27

8 years ago

0.5.26

8 years ago

0.5.25

8 years ago

0.5.24

8 years ago

0.5.23

8 years ago

0.5.22

8 years ago

0.5.21

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.1.4

8 years ago

0.1.34

8 years ago

0.1.33

8 years ago

0.1.32

8 years ago

0.1.31

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago