1 | import * as React from 'react';
|
2 | import type { CSSMotionProps } from 'rc-motion';
|
3 | import type { ActionType, AlignType, TransitionNameType, AnimationType, MobileConfig } from './interface';
|
4 | import { BuildInPlacements } from './interface';
|
5 | export interface TriggerProps {
|
6 | children: React.ReactElement;
|
7 | action?: ActionType | ActionType[];
|
8 | showAction?: ActionType[];
|
9 | hideAction?: ActionType[];
|
10 | getPopupClassNameFromAlign?: (align: AlignType) => string;
|
11 | onPopupVisibleChange?: (visible: boolean) => void;
|
12 | onPopupClick?: React.MouseEventHandler<HTMLDivElement>;
|
13 | afterPopupVisibleChange?: (visible: boolean) => void;
|
14 | popup: React.ReactNode | (() => React.ReactNode);
|
15 | popupStyle?: React.CSSProperties;
|
16 | prefixCls?: string;
|
17 | popupClassName?: string;
|
18 | className?: string;
|
19 | popupPlacement?: string;
|
20 | builtinPlacements?: BuildInPlacements;
|
21 | mouseEnterDelay?: number;
|
22 | mouseLeaveDelay?: number;
|
23 | zIndex?: number;
|
24 | focusDelay?: number;
|
25 | blurDelay?: number;
|
26 | getPopupContainer?: (node: HTMLElement) => HTMLElement;
|
27 | getDocument?: (element?: HTMLElement) => HTMLDocument;
|
28 | forceRender?: boolean;
|
29 | destroyPopupOnHide?: boolean;
|
30 | mask?: boolean;
|
31 | maskClosable?: boolean;
|
32 | onPopupAlign?: (element: HTMLElement, align: AlignType) => void;
|
33 | popupAlign?: AlignType;
|
34 | popupVisible?: boolean;
|
35 | defaultPopupVisible?: boolean;
|
36 | autoDestroy?: boolean;
|
37 | stretch?: string;
|
38 | alignPoint?: boolean;
|
39 |
|
40 | popupMotion?: CSSMotionProps;
|
41 |
|
42 | maskMotion?: CSSMotionProps;
|
43 |
|
44 | popupTransitionName?: TransitionNameType;
|
45 |
|
46 | popupAnimation?: AnimationType;
|
47 |
|
48 | maskTransitionName?: TransitionNameType;
|
49 |
|
50 | maskAnimation?: string;
|
51 | |
52 |
|
53 |
|
54 |
|
55 | getTriggerDOMNode?: (node: React.ReactInstance) => HTMLElement;
|
56 | |
57 |
|
58 | mobile?: MobileConfig;
|
59 | }
|
60 |
|
61 |
|
62 |
|
63 | export declare function generateTrigger(PortalComponent: any): React.ComponentClass<TriggerProps>;
|
64 | export type { BuildInPlacements };
|
65 | declare const _default: React.ComponentClass<TriggerProps, any>;
|
66 | export default _default;
|