From 187ce0d75724ebd0cc980d4352202a85a6fd6fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=84=E9=94=A6=E6=B6=9B?= Date: Thu, 16 Dec 2021 21:36:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20FormItem=E5=A2=9E=E5=8A=A0required?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/steps/form/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/steps/form/index.tsx b/src/steps/form/index.tsx index 4311f7a..486ff96 100644 --- a/src/steps/form/index.tsx +++ b/src/steps/form/index.tsx @@ -91,12 +91,14 @@ export default class FormStepComponent extends FormStep { label, status, message, + required, fieldType, children } = props return ( Date: Fri, 17 Dec 2021 12:43:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E8=A1=A8=E5=8D=95=E9=A1=B9form?= =?UTF-8?q?=E3=80=81group=E3=80=81importSubform=E5=A2=9E=E5=8A=A0required?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/formFields/form/index.tsx | 3 ++- src/components/formFields/group/index.tsx | 2 ++ src/components/formFields/importSubform/index.tsx | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/formFields/form/index.tsx b/src/components/formFields/form/index.tsx index 76411d1..6a874e1 100644 --- a/src/components/formFields/form/index.tsx +++ b/src/components/formFields/form/index.tsx @@ -16,13 +16,14 @@ export default class FormFieldComponent extends FormField { label, status, message, + required, fieldType, layout, children } = props - return ( { const { + key, label, visitable, status, message, + required, fieldType, children } = props @@ -47,6 +49,8 @@ export default class ImportSubformFieldComponent extends ImportSubformField { return (