From e2a664acfa99c11adc753d02768b20cc37cf6c1e Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Mon, 8 Apr 2024 22:45:57 +0800 Subject: [PATCH] 11 --- wxcomponents/image-cropper/image-cropper.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); },