From b7a4f1a69dd742eb5f40315419e6f8a71d2c518e Mon Sep 17 00:00:00 2001 From: anyi <742142482@qq.com> Date: Tue, 13 Aug 2024 14:56:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=20=E5=BF=85=E5=A1=AB=20=E9=9A=90=E8=97=8F=E7=9A=84=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WorkForm/Design/form/formItem.tsx | 190 ++++++++++-------- 1 file changed, 104 insertions(+), 86 deletions(-) diff --git a/src/components/DataStandard/WorkForm/Design/form/formItem.tsx b/src/components/DataStandard/WorkForm/Design/form/formItem.tsx index 59013c457..6ad8882bb 100644 --- a/src/components/DataStandard/WorkForm/Design/form/formItem.tsx +++ b/src/components/DataStandard/WorkForm/Design/form/formItem.tsx @@ -85,99 +85,117 @@ export const FormItem: React.FC<{ labelMode: 'floating', labelLocation: 'left', ...attribute.options, - visible: attribute.options?.hideField !== true, }; if (attribute.options?.isRequired) { mixOptions.label = mixOptions.label + '*'; + mixOptions.className = 'formItemRequired'; } - switch (getWidget(attribute.property?.valueType, attribute.widget)) { - case '数字框': - return ; - case '文本框': - return ; - case '多行文本框': - return