菜单展开模式下,右侧页面打开滚动展现不完整问题修复

This commit is contained in:
HDM58\hdm58 2023-11-01 15:30:26 +08:00
parent 5ffd10ed0a
commit 90afce8d78
2 changed files with 4 additions and 4 deletions

View File

@ -127,7 +127,7 @@ body{color:#323232}
.layout-menu-expand .layui-layout-left {left: 120px;}
.layout-menu-expand .layui-logo{width:120px;}
.layout-menu-expand .layui-body.sub-menu{left: 240px;}
.layout-menu-expand .layui-body.expand-menu{left: 240px;}
.page-tabs,
.gg-layout .layui-body,
@ -196,7 +196,7 @@ body{color:#323232}
.side-spread .gg-layout .layui-footer,
.side-spread .gg-layout .layui-layout-left {left: 52px}
.side-spread .layout-menu-expand .layui-body.sub-menu{left: 172px;}
.side-spread .layout-menu-expand .layui-body.expand-menu{left: 172px;}
.side-spread .layui-side .layui-nav {position: static; width: 52px}
.side-spread .layui-side .layui-nav-item {position: static}

View File

@ -153,7 +153,7 @@ layui.define(['element'], function (exports) {
$gouguMenuList.find('dd').removeClass('layui-this').removeClass('layui-nav-itemed');
$gouguMenuList.find('.menu-li').removeClass('layui-nav-itemed');
$gouguMenuList.find('.gg-second-menu').removeClass('current');
$('#GouguAppBody').removeClass('sub-menu');
$('#GouguAppBody').removeClass('expand-menu');
$('.side-menu-item').each(function (index,item){
if($(item).data("id") == id) {
//console.log(item);
@ -171,7 +171,7 @@ layui.define(['element'], function (exports) {
// 子级菜单
$menuli.siblings().find('.gg-second-menu').removeClass('current');
if ($menuli.children('.gg-second-menu').length) {
$('#GouguAppBody').addClass('sub-menu');
$('#GouguAppBody').addClass('expand-menu');
let second_menu = $(this).parent().parent();
second_menu.removeClass('show-up');
//console.log(second_menu.html());