From d67055e60f00f0215f75bf0afb92cca186abd75c Mon Sep 17 00:00:00 2001 From: liujintao03 Date: Mon, 19 Sep 2022 16:15:09 +0800 Subject: [PATCH] =?UTF-8?q?amis-saas-6405=20=E6=8A=8A=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8=E7=A7=BB=E5=88=B0=E5=A4=96=E8=A7=82=E9=87=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8e56976e51bd4d673da7989c48dd74708c551b86 --- .../src/plugin/Form/InputImage.tsx | 47 ++++++++++--------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/packages/amis-editor/src/plugin/Form/InputImage.tsx b/packages/amis-editor/src/plugin/Form/InputImage.tsx index ebbf3859a..9e6dc111a 100644 --- a/packages/amis-editor/src/plugin/Form/InputImage.tsx +++ b/packages/amis-editor/src/plugin/Form/InputImage.tsx @@ -207,28 +207,6 @@ export class ImageControlPlugin extends BasePlugin { ] }), - getSchemaTpl('switch', { - name: 'fixedSize', - label: tipedLabel('固定尺寸', '开启后需同时设置CSS类'), - value: false - }), - - { - type: 'container', - className: 'ae-ExtendMore mb-3', - visibleOn: 'data.fixedSize', - body: [ - { - type: 'input-text', - name: 'fixedSizeClassName', - label: tipedLabel( - 'CSS类名', - '开启固定尺寸时,根据此值控制展示尺寸' - ) - } - ] - }, - getSchemaTpl('switch', { name: 'hideUploadButton', label: '隐藏上传按钮', @@ -406,6 +384,31 @@ export class ImageControlPlugin extends BasePlugin { title: '外观', body: getSchemaTpl('collapseGroup', [ getSchemaTpl('style:formItem', {renderer: context.info.renderer}), + { + title: '尺寸', + body: [ + getSchemaTpl('switch', { + name: 'fixedSize', + label: tipedLabel('固定尺寸', '开启后需同时设置CSS类'), + value: false + }), + { + type: 'container', + className: 'ae-ExtendMore mb-3', + visibleOn: 'data.fixedSize', + body: [ + { + type: 'input-text', + name: 'fixedSizeClassName', + label: tipedLabel( + 'CSS类名', + '开启固定尺寸时,根据此值控制展示尺寸' + ) + } + ] + } + ] + }, getSchemaTpl('style:classNames', { schema: [] })