From c9616fc6a501cf32c8a470520fadc92f16f04d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=87=91=E9=BE=99?= Date: Fri, 9 Oct 2020 00:39:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9E=E6=97=B6=E5=88=B7=E6=96=B0?= =?UTF-8?q?=EF=BC=88=E4=BF=9D=E5=AD=98=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PanelComponents/FormEditor/index.tsx | 43 ++++++++++++------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/src/components/PanelComponents/FormEditor/index.tsx b/src/components/PanelComponents/FormEditor/index.tsx index cba150f..195c453 100644 --- a/src/components/PanelComponents/FormEditor/index.tsx +++ b/src/components/PanelComponents/FormEditor/index.tsx @@ -52,6 +52,11 @@ const FormEditor = (props: FormEditorProps) => { form.resetFields(); }; }, [defaultValue, form]); + + const handleInputChange = (values: any) => { + let btn = document.getElementById('btn'); + btn?.click(); + }; return (
{ {item.type === 'Number' && ( - + )} {item.type === 'Text' && ( - + )} {item.type === 'TextArea' && ( -