From b0b2d67fce0c62fbd439b121e1b2698d5c64f16e Mon Sep 17 00:00:00 2001 From: xuyuxiang Date: Sun, 14 Sep 2025 21:29:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E5=89=AA=E8=A3=81=E7=BB=84=E4=BB=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=89=AA=E8=A3=81=E5=AE=BD=E5=BA=A6=E5=92=8C?= =?UTF-8?q?=E9=AB=98=E5=BA=A6=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/CropUpload/index.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/snowy-admin-web/src/components/CropUpload/index.vue b/snowy-admin-web/src/components/CropUpload/index.vue index e17bee0b..80c7ef2d 100644 --- a/snowy-admin-web/src/components/CropUpload/index.vue +++ b/snowy-admin-web/src/components/CropUpload/index.vue @@ -85,7 +85,15 @@ circle: { type: Boolean, default: () => false - } + }, + autoCropWidth: { + type: Number, + default: () => 100 + }, + autoCropHeight: { + type: Number, + default: () => 100 + }, }) const emit = defineEmits({ successful: null }) const visible = ref(false) @@ -99,8 +107,8 @@ original: false, canMoveBox: true, autoCrop: true, - autoCropWidth: 200, - autoCropHeight: 200, + autoCropWidth: props.autoCropWidth, + autoCropHeight: props.autoCropHeight, centerBox: false, high: false, cropData: {},