vue-base64-upload
1.0.1 • Public • Published vue-base64-upload
vue-base64-upload is an ui component library base on Vue.js(2.x).
Usage
<template>
<base64-upload imageSrc="user.png" @change="onChangeImage"></base64-upload>
</template>
<script>
import Base64Upload from 'vue-base64-upload'
export default {
components: {
Base64Upload
},
methods: {
onChangeImage(file) {
}
}
}
</script>
Installation
npm install vue-base64-upload
Example
Documentation
props
- imageSrc: String, The default image
- imageStyle: Object, Style of the default image
events
- change: Trigger when upload an image file
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads