Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
1405b23e
Commit
1405b23e
authored
Oct 04, 2016
by
baiyaaaaa
Committed by
cinwell.li
Oct 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix default-active bug
parent
3d60efd4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
CHANGELOG.md
CHANGELOG.md
+2
-0
examples/docs/zh-cn/menu.md
examples/docs/zh-cn/menu.md
+1
-1
packages/menu/src/menu.vue
packages/menu/src/menu.vue
+6
-4
No files found.
CHANGELOG.md
View file @
1405b23e
...
...
@@ -7,6 +7,8 @@
-
修复 Tabs 切换后 Tab-panel 被销毁的问题
-
修复 TimePicker 错误的隐藏面板
-
修复 Table Cell 的样式, #204
-
修复 Menu default-active 属性不能为空的问题, #200
-
修复 Menu unique-opened 开启后无法展开子菜单的问题, #200
-
为 Notification 和 Message 的不同 type 添加独立的调用方法
-
为 Message Box 和 Dialog 添加 lockScroll 属性,用于定义是否在弹框出现时将 body 滚动锁定
-
新增 Input textarea 类型的 rows, autosize 属性
...
...
examples/docs/zh-cn/menu.md
View file @
1405b23e
...
...
@@ -5,7 +5,7 @@
}
.el-menu-vertical-demo {
width: 200px;
height: 400px;
min-
height: 400px;
}
.line {
height: 1px;
...
...
packages/menu/src/menu.vue
View file @
1405b23e
...
...
@@ -64,11 +64,11 @@
let
openedMenus
=
this
.
openedMenus
;
if
(
openedMenus
.
indexOf
(
index
)
!==
-
1
)
return
;
if
(
this
.
uniqueOpened
)
{
openedMenus
=
openedMenus
.
filter
(
index
=>
{
this
.
openedMenus
=
openedMenus
.
filter
(
index
=>
{
return
indexPath
.
indexOf
(
index
)
!==
-
1
;
});
}
openedMenus
.
push
(
index
);
this
.
openedMenus
.
push
(
index
);
},
closeMenu
(
index
,
indexPath
)
{
this
.
openedMenus
.
splice
(
this
.
openedMenus
.
indexOf
(
index
),
1
);
...
...
@@ -106,9 +106,11 @@
},
mounted
()
{
let
index
=
this
.
activeIndex
;
let
indexPath
=
this
.
menuItems
[
index
].
indexPath
;
if
(
index
)
{
let
indexPath
=
this
.
menuItems
[
index
].
indexPath
;
this
.
handleSelect
(
index
,
indexPath
);
this
.
handleSelect
(
index
,
indexPath
);
}
}
};
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment