vue-imgcut-zzw
v1.1.1
Published
从vue-imgcut修改而来,快速上线,未PR
Downloads
7
Readme
vue-imgcut
vue mobile image clipping
Install
npm install vue-imgcut --save
vue-imgcut Instructions for use
<imgCut @callback="callback" :width="200" :height="200">
<div>上传按钮</div>
</imgCut>
<img :src="imgsrc">
import {imgCut} from 'vue-imgcut'
export default {
data(){
return{
imgsrc:'',
}
},
components:{
imgCut
},
methods:{
callback(img){
this.imgsrc=img
//console.log(imgss)
}
}
}