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