Resource/WangEditor/menus/menu-constructors/DropList.d.ts

(完整代码) 783B

/**
 * @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;

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。