From a235d13a4c643bdfc330ffd0b09afde3cb832367 Mon Sep 17 00:00:00 2001 From: rickcole Date: Wed, 28 Apr 2021 15:17:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=B9=E6=A1=86ajax?= =?UTF-8?q?=E8=A1=8C=E4=B8=BA=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Form/ButtonGroup.tsx | 7 +++++-- src/renderers/Form/index.tsx | 8 ++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/renderers/Form/ButtonGroup.tsx b/src/renderers/Form/ButtonGroup.tsx index 02bb69126..ec8ae3963 100644 --- a/src/renderers/Form/ButtonGroup.tsx +++ b/src/renderers/Form/ButtonGroup.tsx @@ -76,7 +76,8 @@ export default class ButtonGroupControl extends React.Component< buttons, size, block, - vertical + vertical, + translate: __ } = props; let body: Array = []; @@ -145,7 +146,9 @@ export default class ButtonGroupControl extends React.Component< {body.length ? ( body ) : ( - {placeholder} + + {__(placeholder)} + )} ); diff --git a/src/renderers/Form/index.tsx b/src/renderers/Form/index.tsx index 71d125f6f..946c89316 100644 --- a/src/renderers/Form/index.tsx +++ b/src/renderers/Form/index.tsx @@ -1596,10 +1596,10 @@ export class FormRenderer extends Form { throwErrors: boolean = false, delegate?: IScopedContext ) { - // 禁用了不要做任何动作。 - if (this.props.disabled) { - return; - } + // 禁用了不要做任何动作。@先注释掉,会引起其他问题 + // if (this.props.disabled) { + // return; + // } if (action.target && action.actionType !== 'reload') { const scoped = this.context as IScopedContext;