You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
894 B
Plaintext

/**
* @description panel class
* @author wangfupeng
*/
import { DomElement } from '../../utils/dom-core';
import PanelMenu from './PanelMenu';
export declare type TabEventConf = {
selector: string;
type: string;
fn: Function;
bindEnter?: Boolean;
};
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;