1.0.2 • Published 4 years ago
cropper-pop v1.0.2
cropper-vue
A simple image cutting plugin for vue
插件的安装
npm i cropper-pop --save
引入插件
import cropper-pop from 'cropper'
Vue.use(cropper)
基本用法
this.$cropperPop.open({
cropperImgSrc: this.cropperImg,
finish: function(base64) {
_this.beCutedSrc = base64;
}
});
参数
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
cropperImgSrc | 需要剪切的图片路径 | String | 空 |
finish | 剪切完成执行回调(回调参数为剪切后图片的base64) | function | 空 |