From 4388f4068ec008b0ada0e0d6b9f07ab299bd7338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=B8=B9?= <365533093@qq.com> Date: Wed, 28 Dec 2022 17:35:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A8=E5=8D=95=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=92=8C=E9=9D=A2=E6=9D=BF=E7=BB=84=E4=BB=B6style=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=BB=86=E8=8A=82=E5=AE=8C=E5=96=84=20(#5992)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(InputImage): 细节调整 * fix: 统一组件style属性ts校验格式 * fix: 表单组件和面板组件style设置细节完善 --- packages/amis-core/src/renderers/Form.tsx | 2 ++ packages/amis/src/renderers/Form/ButtonGroupSelect.tsx | 1 - packages/amis/src/renderers/Panel.tsx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/amis-core/src/renderers/Form.tsx b/packages/amis-core/src/renderers/Form.tsx index c878e5c47..d6fa35d20 100644 --- a/packages/amis-core/src/renderers/Form.tsx +++ b/packages/amis-core/src/renderers/Form.tsx @@ -1733,6 +1733,7 @@ export default class Form extends React.Component { actionsClassName, bodyClassName, classnames: cx, + style, affixFooter, lazyLoad, translate: __, @@ -1750,6 +1751,7 @@ export default class Form extends React.Component { }, { className: cx(panelClassName, 'Panel--form'), + style: style, formStore: this.props.store, children: body, actions: this.buildActions(), diff --git a/packages/amis/src/renderers/Form/ButtonGroupSelect.tsx b/packages/amis/src/renderers/Form/ButtonGroupSelect.tsx index 26a1be662..2424d018a 100644 --- a/packages/amis/src/renderers/Form/ButtonGroupSelect.tsx +++ b/packages/amis/src/renderers/Form/ButtonGroupSelect.tsx @@ -160,7 +160,6 @@ export default class ButtonGroupControl extends React.Component< }, className )} - style={style} > {body.length ? ( body diff --git a/packages/amis/src/renderers/Panel.tsx b/packages/amis/src/renderers/Panel.tsx index 1309711aa..8193bfa9d 100644 --- a/packages/amis/src/renderers/Panel.tsx +++ b/packages/amis/src/renderers/Panel.tsx @@ -179,6 +179,7 @@ export default class Panel extends React.Component { const { type, className, + style, data, header, body,