JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q31501F
  • License MIT

A simple upload component for Vue.js 2.x

Package Exports

  • vue-simple-upload-component

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-simple-upload-component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

Drag and Drop mode

<template>
  <div>
  <upload-file message="Choose a file or drag it here" :isDragDrop="true" @selected-file="uploadAction($event)" @remove-file="removeAction($event)"></upload-file>
  </div>
</template>

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

Without Drag and Drop

<template>
  <div>
  <upload-file message="Choose a file..." :showButton="true" @selected-file="uploadAction($event)" @remove-file="removeAction($event)"></upload-file>
  </div>
</template>

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