@@ -14,68 +14,6 @@ export type Placement =
1414 | 'rightTop'
1515 | 'rightBottom' ;
1616
17- export interface TriggerProps {
18- children : React . ReactElement ;
19- action ?: ActionType | ActionType [ ] ;
20- showAction ?: ActionType [ ] ;
21- hideAction ?: ActionType [ ] ;
22- getPopupClassNameFromAlign ?: ( align : AlignType ) => string ;
23- onPopupVisibleChange ?: ( visible : boolean ) => void ;
24- onPopupClick ?: React . MouseEventHandler < HTMLDivElement > ;
25- afterPopupVisibleChange ?: ( visible : boolean ) => void ;
26- popup : React . ReactNode | ( ( ) => React . ReactNode ) ;
27- popupStyle ?: React . CSSProperties ;
28- prefixCls ?: string ;
29- popupClassName ?: string ;
30- className ?: string ;
31- popupPlacement ?: string ;
32- builtinPlacements ?: BuildInPlacements ;
33- mouseEnterDelay ?: number ;
34- mouseLeaveDelay ?: number ;
35- zIndex ?: number ;
36- focusDelay ?: number ;
37- blurDelay ?: number ;
38- getPopupContainer ?: ( node : HTMLElement ) => HTMLElement ;
39- getDocument ?: ( element ?: HTMLElement ) => HTMLDocument ;
40- forceRender ?: boolean ;
41- destroyPopupOnHide ?: boolean ;
42- mask ?: boolean ;
43- maskClosable ?: boolean ;
44- onPopupAlign ?: ( element : HTMLElement , align : AlignType ) => void ;
45- popupAlign ?: AlignType ;
46- popupVisible ?: boolean ;
47- defaultPopupVisible ?: boolean ;
48- autoDestroy ?: boolean ;
49-
50- stretch ?: string ;
51- alignPoint ?: boolean ; // Maybe we can support user pass position in the future
52-
53- /** Set popup motion. You can ref `rc-motion` for more info. */
54- popupMotion ?: CSSMotionProps ;
55- /** Set mask motion. You can ref `rc-motion` for more info. */
56- maskMotion ?: CSSMotionProps ;
57-
58- /** @deprecated Please us `popupMotion` instead. */
59- popupTransitionName ?: TransitionNameType ;
60- /** @deprecated Please us `popupMotion` instead. */
61- popupAnimation ?: AnimationType ;
62- /** @deprecated Please us `maskMotion` instead. */
63- maskTransitionName ?: TransitionNameType ;
64- /** @deprecated Please us `maskMotion` instead. */
65- maskAnimation ?: string ;
66-
67- /**
68- * @private Get trigger DOM node.
69- * Used for some component is function component which can not access by `findDOMNode`
70- */
71- getTriggerDOMNode ?: ( node : React . ReactInstance ) => HTMLElement ;
72-
73- // ========================== Mobile ==========================
74- /** @private Bump fixed position at bottom in mobile.
75- * This is internal usage currently, do not use in your prod */
76- mobile ?: MobileConfig ;
77- }
78-
7917export type AlignPointTopBottom = 't' | 'b' | 'c' ;
8018export type AlignPointLeftRight = 'l' | 'r' | 'c' ;
8119
@@ -108,6 +46,8 @@ export interface AlignType {
10846 shiftX ?: boolean | number ;
10947 shiftY ?: boolean | number ;
11048 } ;
49+ /** Auto adjust arrow position */
50+ autoArrow ?: boolean ;
11151 /**
11252 * Whether use css right instead of left to position
11353 */
0 commit comments