1 | import * as React from 'react';
|
2 | import type { CSSMotionProps } from 'rc-motion';
|
3 | import type { Point, AlignType, StretchType, TransitionNameType, AnimationType } from '../interface';
|
4 | export interface PopupInnerProps {
|
5 | visible?: boolean;
|
6 | prefixCls: string;
|
7 | className?: string;
|
8 | style?: React.CSSProperties;
|
9 | children?: React.ReactNode;
|
10 | zIndex?: number;
|
11 | motion: CSSMotionProps;
|
12 | destroyPopupOnHide?: boolean;
|
13 | forceRender?: boolean;
|
14 | animation: AnimationType;
|
15 | transitionName: TransitionNameType;
|
16 | stretch?: StretchType;
|
17 | align?: AlignType;
|
18 | point?: Point;
|
19 | getRootDomNode?: () => HTMLElement;
|
20 | getClassNameFromAlign?: (align: AlignType) => string;
|
21 | onAlign?: (element: HTMLElement, align: AlignType) => void;
|
22 | onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
23 | onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
|
24 | onMouseDown?: React.MouseEventHandler<HTMLDivElement>;
|
25 | onTouchStart?: React.TouchEventHandler<HTMLDivElement>;
|
26 | onClick?: React.MouseEventHandler<HTMLDivElement>;
|
27 | }
|
28 | export interface PopupInnerRef {
|
29 | forceAlign: () => void;
|
30 | getElement: () => HTMLElement;
|
31 | }
|
32 | declare const PopupInner: React.ForwardRefExoticComponent<PopupInnerProps & React.RefAttributes<PopupInnerRef>>;
|
33 | export default PopupInner;
|