diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index 7ef5d9dac6..eec2829dff 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -12,6 +12,7 @@ import zIndexContext from '../_util/zindexContext'; import { ConfigContext } from '../config-provider'; import useCSSVarCls from '../config-provider/hooks/useCSSVarCls'; import { NoFormStyle } from '../form/context'; +import Skeleton from '../skeleton'; import { NoCompactStyle } from '../space/Compact'; import { usePanelRef } from '../watermark/context'; import type { ModalProps, MousePosition } from './interface'; @@ -86,6 +87,8 @@ const Modal: React.FC = (props) => { footer, classNames: modalClassNames, styles: modalStyles, + children, + loading, ...restProps } = props; @@ -100,9 +103,10 @@ const Modal: React.FC = (props) => { [`${prefixCls}-wrap-rtl`]: direction === 'rtl', }); - const dialogFooter = footer !== null && ( -