/*
 * @Author: Zh_Strong
 * @Date: 2022-10-15 18:20:19
 * @LastEditTime: 2022-10-17 15:43:02
 * @LastEditors: Zh_Strong
 * @Description: Zh_Strong
 * @FilePath: \layui-encapsulation\layui\lib\dropdown.js
 */
/**Layui下拉菜单类说明
 * @parameter 传递的参数{}，参数如下：
 ** elem: "", // 绑定元素，(必填项) 指向容器选择器 类型（ string / object）
 */
class lay_dropdown {
    constructor(parameter = {}) {
        this.parameter = parameter;
        let that = this;
        layui.use(['dropdown'], function () {
            var dropdown = layui.dropdown;
            that.dropdown = dropdown.render(that.parameter);
        });
    };
    /**
     * 评分类的参数提示
     */
    static config = {
        elem: "elem",
        data: "data",
        trigger: "trigger",
        show: "show",
        align: "align",
        isAllowSpread: "isAllowSpread",
        isSpreadItem: "isSpreadItem",
        delay: "delay",
        className: "className",
        style: "style",
        templet: "templet",
        content: "content",
        ready: "ready",
        click: "click"
    };
    static menu = {
        title: "title",
        id: "id",
        href: "href",
        target: "target",
        type: "type",
        child: "child",
        templet: "templet",
    }
    static align = {
        left: "left",
        center: "center",
        right: "right"
    }
    static target = {
        blank: "_blank",
        self: "_self",
        parent: "_parent",
        top: "_top"
    }
    static type = {
        normal: "normal",
        group: "group",
        parent: "parent",
        splitLine: "-"
    }
};

export default lay_dropdown;