1 |
|
2 |
|
3 |
|
4 | import { DomElement } from '../../utils/dom-core';
|
5 | import DropListMenu from './DropListMenu';
|
6 | export declare type DropListItem = {
|
7 | $elem: DomElement;
|
8 | value: string;
|
9 | };
|
10 | export declare type DropListConf = {
|
11 | title: string;
|
12 | list: DropListItem[];
|
13 | type: string;
|
14 | clickHandler: (value: DropListItem['value']) => void;
|
15 | width: number | 100;
|
16 | };
|
17 | declare class DropList {
|
18 | private menu;
|
19 | private conf;
|
20 | private $container;
|
21 | private rendered;
|
22 | private _show;
|
23 | hideTimeoutId: number;
|
24 | constructor(menu: DropListMenu, conf: DropListConf);
|
25 | /**
|
26 | * 显示 DropList
|
27 | */
|
28 | show(): void;
|
29 | /**
|
30 | * 隐藏 DropList
|
31 | */
|
32 | hide(): void;
|
33 | get isShow(): boolean;
|
34 | }
|
35 | export default DropList;
|