UNPKG

@alicloud/console-components

Version:

Alibaba Cloud React Components

67 lines (66 loc) 4.16 kB
import React from 'react'; import type { BalloonProps } from '@alifd/next/types/balloon'; import BalloonTooltip, { BalloonTooltipProps } from './balloon-tooltip'; declare const _default: React.ForwardRefExoticComponent<BalloonProps & React.RefAttributes<unknown>> & { Tooltip: React.ForwardRefExoticComponent<BalloonTooltipProps & React.RefAttributes<unknown>> & import("hoist-non-react-statics").NonReactStatics<import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<BalloonTooltipProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/balloon/tooltip").default, {}>, {}>; } & import("hoist-non-react-statics").NonReactStatics<import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<BalloonProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, { readonly props: import("@alifd/next/types/balloon").BalloonV1Props & import("@alifd/next/types/balloon").BalloonV2Props; _onVisibleChange(visible: boolean, trigger: string): void; _onClose(e: React.MouseEvent<Element, MouseEvent>): void; _onPosition(res: { align?: string[]; config: { placement: string; points: string; }; style?: CSSCounterStyleRule; }): void; beforePosition: (result: { config: { placement: import("@alifd/next/types/balloon").AlignType; }; style: { left: number; top: number; }; }, obj: { target: { width: number; height: number; }; }) => { config: { placement: import("@alifd/next/types/balloon").AlignType; }; style: { left: number; top: number; }; }; render(): React.JSX.Element; context: any; setState<K extends keyof import("@alifd/next/types/balloon/types").BalloonState>(state: import("@alifd/next/types/balloon/types").BalloonState | ((prevState: Readonly<import("@alifd/next/types/balloon/types").BalloonState>, props: Readonly<BalloonProps>) => import("@alifd/next/types/balloon/types").BalloonState | Pick<import("@alifd/next/types/balloon/types").BalloonState, K>) | Pick<import("@alifd/next/types/balloon/types").BalloonState, K>, callback?: () => void): void; forceUpdate(callback?: () => void): void; state: Readonly<import("@alifd/next/types/balloon/types").BalloonState>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<BalloonProps>, nextState: Readonly<import("@alifd/next/types/balloon/types").BalloonState>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<BalloonProps>, prevState: Readonly<import("@alifd/next/types/balloon/types").BalloonState>): any; componentDidUpdate?(prevProps: Readonly<BalloonProps>, prevState: Readonly<import("@alifd/next/types/balloon/types").BalloonState>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<BalloonProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<BalloonProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<BalloonProps>, nextState: Readonly<import("@alifd/next/types/balloon/types").BalloonState>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<BalloonProps>, nextState: Readonly<import("@alifd/next/types/balloon/types").BalloonState>, nextContext: any): void; }, {}> & { Tooltip: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<BalloonTooltipProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/balloon/tooltip").default, {}>; Inner: typeof import("@alifd/next/types/balloon/inner").default; }, {}>; export default _default; export { BalloonTooltip }; export type { BalloonProps, BalloonTooltipProps };