This commit is contained in:
sentsin
2016-11-30 02:23:57 +08:00
parent 1e8bd1496c
commit c1663351cc
32 changed files with 141 additions and 122 deletions

View File

@@ -1,6 +1,6 @@
/**
/**
@Name用于打包打包PC完整版即包含layui.js和所有模块的完整合并该文件不会存在于构建后的目录
@Name用于打包PC完整版即包含layui.js和所有模块的完整合并该文件不会存在于构建后的目录
@Author贤心
@LicenseLGPL

View File

@@ -1,11 +0,0 @@
/**
@Name用于打包PC完整模块该文件不会存在于构建后的目录
@Author贤心
@LicenseLGPL
*/
layui.define(function(exports){
exports('layui.mod', layui.v);
});

View File

@@ -153,15 +153,16 @@ layui.define('jquery', function(exports){
,filter = parents.attr('lay-filter');
if(othis.find('.'+NAV_CHILD)[0]) return;
othis.addClass(THIS).siblings().removeClass(THIS);
parents.find('.'+THIS).removeClass(THIS);
othis.addClass(THIS);
layui.event.call(this, MOD_NAME, 'nav('+ filter +')', othis);
}
//点击子菜单选中
,clickChild: function(){
var othis = $(this), parents = othis.parents(NAV_ELEM)
,filter = parents.attr('lay-filter');
othis.addClass(THIS).siblings().removeClass(THIS);
parents.find('.'+THIS).removeClass(THIS);
othis.addClass(THIS);
layui.event.call(this, MOD_NAME, 'nav('+ filter +')', othis);
}
//展开二级菜单