Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
office
haoban-3
Commits
ef8f5f94
Commit
ef8f5f94
authored
May 10, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 菜单框架
parent
88e6e05a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
index.vue
src/components/layout/index.vue
+6
-4
main-menu.vue
src/components/layout/main-menu.vue
+2
-0
No files found.
src/components/layout/index.vue
View file @
ef8f5f94
...
...
@@ -5,10 +5,12 @@
<div
class=
"hb-layout-content"
>
<bread-menu
v-if=
"activedMenu.length > 3"
:menu-list=
"activedMenu.slice(2)"
></bread-menu>
<div
class=
"hb-layout-pager"
:style=
"
{ height: activedMenu.length > 3 ? `calc(100% - 30px)` : '100%' }">
<slot>
<!--
<div
style=
"width: 1300px;height: 1000px;border:1px solid red"
></div>
页面内容 -->
</slot>
<!-- 页面内容 -->
<!--
<router-view
v-if=
"activeBrand"
:brandId=
"activeBrand"
:activeGroupId=
"activeGroup"
:tabType=
"activeTab"
@
showTab=
"showTab"
></router-view>
-->
<keep-alive
v-if=
"$route.meta.keepAlive"
>
<router-view></router-view>
</keep-alive>
<router-view
v-else
></router-view>
</div>
</div>
</div>
...
...
src/components/layout/main-menu.vue
View file @
ef8f5f94
...
...
@@ -73,6 +73,8 @@ export default {
<
style
lang=
"scss"
scoped
>
.main-menu-box
{
position
:
relative
;
z-index
:
1
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
stretch
;
...
...
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