mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-10 13:00:49 +08:00
优化更多按钮空态隐藏下拉箭头与面板左上角定位
This commit is contained in:
@@ -296,6 +296,8 @@
|
||||
ddHtml += '<dd lay-unselect data-menu="' + menuId + '"><a href="javascript:;"><i class="' + icon + '"></i> ' + (menu.title || '') + '</a></dd>';
|
||||
});
|
||||
$more.children('dl.layui-nav-child').html(ddHtml);
|
||||
// 空态标记:无折叠模块时隐藏下拉箭头图标(配合 CSS;箭头为绝对定位不影响宽度测量)
|
||||
$more.toggleClass('layuimini-header-more-empty', hiddenMenus.length === 0);
|
||||
element.init(); //已核实安全:只重绑事件与 bar span,不重建 dd DOM,激活态得以保留
|
||||
miniMenu.syncHeaderActiveState(); //折叠可能隐藏当前激活项,重算后立即同步
|
||||
},
|
||||
@@ -357,8 +359,8 @@
|
||||
type: 1,
|
||||
title: '全部模块',
|
||||
anim: 2,
|
||||
offset: 't',
|
||||
area: ['100%', 'auto'],
|
||||
offset: 'lt', //左上角定位
|
||||
area: ['60%', 'auto'], //宽度 60%,高度随内容(面板内容最小高 300px、上限 70vh 滚动由 CSS 控制)
|
||||
shade: 0.2,
|
||||
shadeClose: true,
|
||||
closeBtn: 0,
|
||||
|
||||
Reference in New Issue
Block a user