@@ -67,10 +67,12 @@ var propTypes = {
67
67
delay : _propTypes . default . oneOfType ( [ _propTypes . default . number , _propTypes . default . object ] ) ,
68
68
getPopupContainer : _propTypes . default . func ,
69
69
getDocument : _propTypes . default . func ,
70
+ popup : _propTypes . default . oneOfType ( [ _propTypes . default . node , _propTypes . default . func ] ) . isRequired ,
70
71
prefixCls : _propTypes . default . string ,
71
72
popupClassName : _propTypes . default . string ,
72
73
popupMaskClassName : _propTypes . default . string ,
73
74
defaultPopupVisible : _propTypes . default . bool ,
75
+ popupVisible : _propTypes . default . bool ,
74
76
popupProps : _propTypes . default . object ,
75
77
mask : _propTypes . default . bool ,
76
78
maskClosable : _propTypes . default . bool ,
@@ -585,7 +587,7 @@ function (_React$Component) {
585
587
key : "getDerivedStateFromProps" ,
586
588
value : function getDerivedStateFromProps ( props , state ) {
587
589
return {
588
- popupVisible : 'visible ' in props ? props . visible : state . popupVisible
590
+ popupVisible : 'popupVisible ' in props ? props . popupVisible : state . popupVisible
589
591
} ;
590
592
}
591
593
} ] ) ;
0 commit comments