@@ -15,6 +15,34 @@ export interface PopupProps extends TdPopupProps, StyledProps {
15
15
updateScrollTop ?: ( content : HTMLElement ) => void ;
16
16
}
17
17
18
+ export const PopupTypes = {
19
+ attach : [ String , Function ] ,
20
+ content : [ String , Number , Object , Function ] ,
21
+ delay : [ Number , Array ] ,
22
+ destroyOnClose : Boolean ,
23
+ disabled : Boolean ,
24
+ hideEmptyPopup : Boolean ,
25
+ overlayClassName : String ,
26
+ overlayInnerClassName : String ,
27
+ overlayInnerStyle : [ Object , Function ] ,
28
+ overlayStyle : [ Object , Function ] ,
29
+ arrowStyle : [ Object , Function ] ,
30
+ placement : String ,
31
+ popperOptions : Object ,
32
+ showArrow : Boolean ,
33
+ trigger : String ,
34
+ triggerElement : [ String , Number , Object , Function ] ,
35
+ visible : Boolean ,
36
+ defaultVisible : Boolean ,
37
+ zIndex : Number ,
38
+ onScroll : Function ,
39
+ onScrollToBottom : Function ,
40
+ onVisibleChange : Function ,
41
+ strategy : String ,
42
+ expandAnimation : Boolean ,
43
+ updateScrollTop : Function ,
44
+ } ;
45
+
18
46
@tag ( 't-popup' )
19
47
export default class Popup extends Component < PopupProps > {
20
48
static css = `
@@ -26,6 +54,8 @@ export default class Popup extends Component<PopupProps> {
26
54
}
27
55
` ;
28
56
57
+ static propTypes = PopupTypes ;
58
+
29
59
static defaultProps = {
30
60
attach : 'body' ,
31
61
destroyOnClose : false ,
0 commit comments