vuejs-avatar-crop
v1.1.0
Published
Support cutting of avatars of PC and mobile phones.
Downloads
27
Readme
avatar-crop
安装
npm i vue-avatar-crop-wechat --save
如何使用
// 导入
import avatar from 'vue-avatar-crop-wechat'
Vue.use(avatar)
// 使用
<vue-avatar @cancel="cancel" @done="done" :file="file" />
参数
// cancel: 取消操作,没有参数。
// done: 返回
{
base64: 'base64图片',
img: 'blob图片',
url: 'blob的url地址',
}
Lints and fixes files
npm run lint