From a827a72442f68c5249c8062bebc8d8998a04ce10 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Fri, 29 May 2020 16:20:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E7=94=A8=20render=20=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E4=B8=8D=E8=A6=81=E6=8A=8A=20data=20?= =?UTF-8?q?=E4=BC=A0=E5=88=B0=20schema=20=E9=87=8C=E9=9D=A2,=E5=90=A6?= =?UTF-8?q?=E5=88=99=E4=BC=9A=E8=AE=A4=E4=B8=BA=E6=98=AF=20defaultData?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Form/Button.tsx | 2 +- src/renderers/Form/Static.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderers/Form/Button.tsx b/src/renderers/Form/Button.tsx index 01c42df9..e96796dd 100644 --- a/src/renderers/Form/Button.tsx +++ b/src/renderers/Form/Button.tsx @@ -8,7 +8,7 @@ export interface ButtonProps extends FormControlProps, Omit {} export class ButtonControl extends React.Component { static defaultProps: Partial = {}; render() { - const {render, type, children, ...rest} = this.props; + const {render, type, children, data, ...rest} = this.props; return render('action', { ...rest, diff --git a/src/renderers/Form/Static.tsx b/src/renderers/Form/Static.tsx index 2fd754af..42dea06f 100644 --- a/src/renderers/Form/Static.tsx +++ b/src/renderers/Form/Static.tsx @@ -49,6 +49,7 @@ export default class StaticControl extends React.Component { type, render, children, + data, ...rest } = this.props;