diff --git a/packages/main/src/components/FormItem/index.tsx b/packages/main/src/components/FormItem/index.tsx index cbadc19c314..6d156c45c02 100644 --- a/packages/main/src/components/FormItem/index.tsx +++ b/packages/main/src/components/FormItem/index.tsx @@ -88,13 +88,13 @@ function FormItemLabel({ label, style, className }: { label: ReactNode; style?: } if (isValidElement(label)) { - const { showColon, wrappingType, className, style: labelStyle, children } = label.props; + const { showColon, wrappingType, style: labelStyle, children } = label.props; return cloneElement( label, { showColon: showColon ?? true, wrappingType: wrappingType ?? WrappingType.Normal, - className: `${classes.label} ${className ?? ''}`, + className: clsx(classes.label, className, label.props.className), style: { ...style, ...(labelStyle || {})