Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
common-templete
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汤强勇
common-templete
Commits
b52f742e
Commit
b52f742e
authored
Oct 31, 2018
by
汤强勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整侧边栏
parent
344c5474
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
index.vue
src/components/Sidebar/index.vue
+17
-5
No files found.
src/components/Sidebar/index.vue
View file @
b52f742e
...
@@ -76,13 +76,26 @@ export default {
...
@@ -76,13 +76,26 @@ export default {
created
()
{
created
()
{
},
},
methods
:
{
methods
:
{
choseMenu
(
item
,
itemIndex
)
{
/**
this
.
currentMenus
=
item
* 选择边测菜单主菜单
this
.
currentMenusIndex
=
itemIndex
*/
choseMenu
(
selectItem
,
selectItemIndex
)
{
this
.
currentMenus
=
selectItem
this
.
currentMenusIndex
=
selectItemIndex
if
(
!
this
.
unfold
)
{
if
(
!
this
.
unfold
)
{
this
.
toggleUnfold
(
true
)
this
.
toggleUnfold
(
true
)
}
}
},
},
/**
* 二级菜单
**/
choseChildrenItem
(...
args
)
{
console
.
log
(
args
)
},
/**
* 三级菜单
* @param args
**/
selectItemMenu
(...
args
)
{
selectItemMenu
(...
args
)
{
console
.
log
(
args
)
console
.
log
(
args
)
},
},
...
@@ -101,8 +114,7 @@ export default {
...
@@ -101,8 +114,7 @@ export default {
},
},
choseSubChildren
(...
args
)
{
choseSubChildren
(...
args
)
{
console
.
log
(
args
)
console
.
log
(
args
)
},
}
choseChildrenItem
()
{}
}
}
}
}
</
script
>
</
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