diff --git a/packages/antd/src/components/FormMegaLayout/index.tsx b/packages/antd/src/components/FormMegaLayout/index.tsx index 43870a54eca..ba642f542e8 100644 --- a/packages/antd/src/components/FormMegaLayout/index.tsx +++ b/packages/antd/src/components/FormMegaLayout/index.tsx @@ -69,7 +69,7 @@ const StyledLayoutNestWrapper = styled(props => { })`${props => computeStyle(props, true)}` const MegaLayout = (props: ILayoutProps) => { - const { children, addonBefore, addonAfter, description, ...others } = props + const { children, addonBefore, addonAfter, description, className: megaLayoutClassName, ...others } = props const layoutProps = props.layoutProps || {} const { size } = useDeepFormItem() @@ -119,9 +119,8 @@ const MegaLayout = (props: ILayoutProps) => { if (labelWidth !== -1) itemProps.labelWidth = labelWidth if (wrapperWidth !== -1) itemProps.wrapperWidth = wrapperWidth } - let ele = computeStyle(props)}` const MegaLayout = (props: ILayoutProps) => { - const { children, addonBefore, addonAfter, description, ...others } = props + const { children, addonBefore, addonAfter, description, className: megaLayoutClassName, ...others } = props const layoutProps = props.layoutProps || {} const { size } = useDeepFormItem() @@ -122,7 +122,7 @@ const MegaLayout = (props: ILayoutProps) => { } let ele =