新增 menu 基础菜单对 title
属性的默认识别
This commit is contained in:
parent
f847f92054
commit
43172bd2f0
@ -468,6 +468,8 @@ layui.define(['jquery', 'laytpl', 'lay'], function(exports){
|
||||
parent.find('.'+ STR_ITEM_CHECKED2).removeClass(STR_ITEM_CHECKED2); //清除父级菜单选中样式
|
||||
othis.addClass(STR_ITEM_CHECKED); //添加选中样式
|
||||
othis.parents('.'+ STR_ITEM_PARENT).addClass(STR_ITEM_CHECKED2); //添加父级菜单选中样式
|
||||
|
||||
options.title = options.title || $.trim(othis.children('.'+ STR_MENU_TITLE).text());
|
||||
|
||||
//触发事件
|
||||
layui.event.call(this, MOD_NAME, 'click('+ filter +')', options);
|
||||
|
Loading…
Reference in New Issue
Block a user