window.rootPath = (function (src) {
    src = document.scripts[document.scripts.length - 1].src;
    return src.substring(0, src.lastIndexOf("/") + 1);
})();
layui.config({
    base: rootPath + "lay-module/",
    version: true
}).extend({
    miniAdmin: "layuimini/miniAdmin", // layuimini后台扩展
    miniMenu: "layuimini/miniMenu", // layuimini菜单扩展
    miniTab: "layuimini/miniTab", // layuimini tab扩展
    miniTheme: "layuimini/miniTheme", // layuimini 主题扩展

    treeSelect: 'treeselect2/treeSelect',
    soulTable: 'soulTable/soulTable',
    treetable: 'treetable-lay/treetable',
    xmSelect: 'xmSelect/xm-select',
    // treeTable: 'treeTable/treeTable',
    iconPicker: 'iconPicker/iconPicker',
    authtree: 'authtree/authtree',
    tableSelect: 'tableSelect/tableSelect',
    dropdown: 'dropdown/dropdown',
    
    step: 'step-lay/step', // 分步表单扩展
    echarts: 'echarts/echarts', // echarts图表扩展
    echartsTheme: 'echarts/echartsTheme', // echarts图表主题扩展
    wangEditor: 'wangEditor/wangEditor', // wangEditor富文本扩展
    layarea: 'layarea/layarea', //  省市县区三级联动下拉选择器
});