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