We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f733762 commit 0e2b3d9Copy full SHA for 0e2b3d9
src/DialogWrap.tsx
@@ -12,7 +12,7 @@ import { IDialogPropTypes } from './IDialogPropTypes';
12
* So here should add a child (div element) to custom container.
13
* */
14
15
-export default (props: IDialogPropTypes) => {
+const DialogWrap: React.FC<IDialogPropTypes> = (props: IDialogPropTypes) => {
16
const { visible, getContainer, forceRender } = props;
17
// 渲染在当前 dom 里;
18
if (getContainer === false) {
@@ -30,3 +30,7 @@ export default (props: IDialogPropTypes) => {
30
</Portal>
31
);
32
};
33
+
34
+DialogWrap.displayName = 'Dialog';
35
36
+export default DialogWrap;
0 commit comments