|
|
|
@@ -12,12 +12,21 @@ import './index.less'; |
|
|
|
export interface KFModalProps extends ModalProps { |
|
|
|
image?: string; |
|
|
|
} |
|
|
|
function KFModal({ title, image, children, className = '', centered, ...rest }: KFModalProps) { |
|
|
|
function KFModal({ |
|
|
|
title, |
|
|
|
image, |
|
|
|
children, |
|
|
|
className = '', |
|
|
|
centered, |
|
|
|
maskClosable, |
|
|
|
...rest |
|
|
|
}: KFModalProps) { |
|
|
|
return ( |
|
|
|
<Modal |
|
|
|
className={classNames(['kf-modal', className])} |
|
|
|
{...rest} |
|
|
|
centered={centered ?? true} |
|
|
|
maskClosable={maskClosable ?? false} |
|
|
|
title={<ModalTitle title={title} image={image}></ModalTitle>} |
|
|
|
> |
|
|
|
{children} |
|
|
|
|