1.0.0 • Published 7 years ago

vue-mobile-avatar-upload v1.0.0

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

vue-image-crop-upload

A mobile component used for cropping and uploading avatar;

Install

npm

$ npm install vue-mobile-avatar-upload

Usage

Props

NameTypeDefaultDescription
actionString''Server path, If empty, will not be uploaded
maxSizeNumber6000the maximum of image's size.
languageStringenlanguage,'zh'(chinese),'en'(english)

Events

NameDescription
onBeginimage begin upload
onSuccessupload success, params( response )
onErrorupload fail, params( status )