Panel.d.ts 864 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
/**
 * @description panel class
 * @author wangfupeng
 */
import { DomElement } from '../../utils/dom-core';
import PanelMenu from './PanelMenu';
declare type _TabEventConf = {
    selector: string;
    type: string;
    fn: Function;
};
export declare type PanelTabConf = {
    title: string;
    tpl: string;
    events: _TabEventConf[];
};
export declare type PanelConf = {
    width: number | 0;
    height: number | 0;
    tabs: PanelTabConf[];
};
declare class Panel {
    static createdMenus: Set<PanelMenu>;
    private menu;
    private conf;
    $container: DomElement;
    constructor(menu: PanelMenu, conf: PanelConf);
    /**
     * 创建并展示 panel
     */
    create(): void;
    /**
     * 移除 penal
     */
    remove(): void;
    /**
     * 隐藏当前所有的 panel
     */
    static hideCurAllPanels(): void;
}
export default Panel;