/** * @license * Copyright 厦门乾元盛世科技有限公司 All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file. */ import { ElementRef, Renderer } from '@angular/core'; import { OnInit, OnDestroy } from '@angular/core'; import { Align } from './align'; export declare type PopupPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom'; /** * Popup * 参考 https://github.com/react-component/trigger */ export declare class Popup extends Align implements OnInit, OnDestroy { private renderer; private elementRef; prefixCls: string; destroyPopupOnHide: boolean; /** 用户CSS样式 */ class: string; popupStyle: object; action: string | string[]; animation: any; transitionName: string | object; /** * 是否已遮罩 */ mask: boolean; /** * 遮罩动画名 */ maskAnimation: string; /** * 遮罩过渡效果 */ maskTransitionName: string | object; zIndex: number; /** * 气泡框位置,可选 top left right bottom topLeft topRight bottomLeft bottomRight leftTop leftBottom rightTop rightBottom。 * 默认值为top。 */ placement: PopupPlacement; builtinPlacements: Object; private currentAlignClassName; /** * 冒泡触发器:目标Element */ private _triggerElement; private _visible; visible: boolean; /** * 冒泡样式 */ readonly classes: string; onMouseEnterFn: (_: any) => void; onMouseLeaveFn: (_: any) => void; constructor(renderer: Renderer, elementRef: ElementRef); ngOnInit(): void; ngOnDestroy(): void; getClassNameFromAlign(align: any): any; getAlign(): {}; onAlign(align: any): void; registerTriggerElement(triggerElement: HTMLElement): void; registerOnMouseEnter(fn: ((_: any) => void)): void; registerOnMouseLeave(fn: ((_: any) => void)): void; /** * element: The underlying host native element */ getHostElement(): HTMLElement; getBaseTarget(): any; getMaskTransitionName(): string | object; getTransitionName(): string | object; getMaskClassName(): any; getPopupClassName(): any; getZIndexStyle(): any; onMouseEnter(event: Event): void; onMouseLeave(event: Event): void; }