Skip to content

Commit

Permalink
fix: 修改modalRender的类型,约束为className, 以及children的类型
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoneybee committed Aug 18, 2020
1 parent e080f16 commit a447621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IDialogPropTypes.tsx
Expand Up @@ -38,7 +38,7 @@ interface IDialogPropTypes {
getContainer?: IStringOrHtmlElement | (() => IStringOrHtmlElement) | false;
closeIcon?: ReactNode;
forceRender?: boolean;
modalRender?: React.ComponentType<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
modalRender?: React.ComponentType<{ className: string, children: ReactNode }>;
// https://github.com/ant-design/ant-design/issues/19771
// https://github.com/react-component/dialog/issues/95
focusTriggerAfterClose?: boolean;
Expand Down

0 comments on commit a447621

Please sign in to comment.