From 30786a24c6beaf23fb56b23f1e4a797a357a60fa Mon Sep 17 00:00:00 2001 From: hzh11012 <917944345@qq.com> Date: Fri, 29 Nov 2024 16:09:24 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=94=AF=E6=8C=81=E5=8E=8B=E7=BC=A9=E8=B4=A8=E9=87=8F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor/src/plugin/Form/InputImage.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/amis-editor/src/plugin/Form/InputImage.tsx b/packages/amis-editor/src/plugin/Form/InputImage.tsx index 2b23773b170..647a84c04ac 100644 --- a/packages/amis-editor/src/plugin/Form/InputImage.tsx +++ b/packages/amis-editor/src/plugin/Form/InputImage.tsx @@ -365,6 +365,18 @@ export class ImageControlPlugin extends BasePlugin { {label: '绘图区域', value: 1} ], pipeOut: valuePipeOut + }, + { + name: 'cropQuality', + type: 'input-number', + label: tipedLabel( + '压缩质量', + '裁剪后会重新生成,体积可能会变大,需要设置压缩质量降低体积,数值越小压缩率越高' + ), + step: 0.1, + min: 0.1, + max: 1, + value: 0.7 } ] },