菜单错位问题

develop
就眠仪式 2020-08-24 17:56:02 +08:00
parent ebc099e1ff
commit fbba86cafe
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
"href": "",
"children": [{
"id": 201,
"title": "基础组件",
"title": "基础组件 宽度测试",
"icon": "layui-icon layui-icon-console",
"type": 0,
"children": [{

View File

@ -375,7 +375,7 @@ layui.define(['table', 'jquery', 'element'], function(exports) {
topLength = height-thisHeight-10;
}
if (!$(this).is(".layui-nav-item")) {
var left = $(this).offset().left + 132;
var left = $(this).offset().left + $(this).width()+2;
$(this).children(".layui-nav-child").offset({
left: left
});