wangfukang 3 years ago
parent
commit
e2a664acfa
  1. 8
      wxcomponents/image-cropper/image-cropper.js

8
wxcomponents/image-cropper/image-cropper.js

@ -65,7 +65,7 @@ Component({
*/ */
'export_scale': { 'export_scale': {
type: Number, type: Number,
value: 3 value: 5
}, },
/** /**
* 生成的图片质量0-1 * 生成的图片质量0-1
@ -385,9 +385,11 @@ Component({
* 设置剪裁框尺寸 * 设置剪裁框尺寸
*/ */
setCutSize(w, h) { setCutSize(w, h) {
console.log(this.data.img_width)
console.log(this.data.img_height)
this.setData({ this.setData({
width: w, width: this.data.img_width,
height: h height: this.data.img_height
}); });
this._computeCutSize(); this._computeCutSize();
}, },

Loading…
Cancel
Save