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.

36 lines
783 B
Plaintext

/**
* @description 下拉列表 class
*/
import { DomElement } from '../../utils/dom-core';
import DropListMenu from './DropListMenu';
export declare type DropListItem = {
$elem: DomElement;
value: string;
};
export declare type DropListConf = {
title: string;
list: DropListItem[];
type: string;
clickHandler: (value: DropListItem['value']) => void;
width: number | 100;
};
declare class DropList {
private menu;
private conf;
private $container;
private rendered;
private _show;
hideTimeoutId: number;
constructor(menu: DropListMenu, conf: DropListConf);
/**
* 显示 DropList
*/
show(): void;
/**
* 隐藏 DropList
*/
hide(): void;
get isShow(): boolean;
}
export default DropList;