0.1.2 • Published 4 years ago

vue-profile-uploader v0.1.2

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

image-uploader

Install

npm install -s vue-profile-uploader

Usage

<template>
  <div class="">
    <vue-profile-uploader v-model="logo" endpoint="{your-endpoint}"/>
  </div>
</template>

<script>
import VueProfileUpload from "vue-profile-uploader";

export default {
  props: {
    msg: String
  },
  components: {
    VueProfileUploader
  },
  data() {
    return {
      logo: ""
    };
  }
};
</script>

Props

nametypeDescriptionRequiredDefault
valuestringimage pathtrue""
endpointstringurl to the uploadtrue""
placeholderstringtext to show in the box when there's no imagefalse"Click to upload"
fieldNamestringfield name of the file expected in the backendfalse"logo"

Events

namepayload
inputvalue
uploadresponse
errorerror object