Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_web_vue
Project
Project
Details
Activity
Releases
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
张伯涛
91isoft_web_vue
Commits
e63fdddc
Commit
e63fdddc
authored
Mar 08, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pda搭建文档
parent
0ab28fe7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
notes.md
notes.md
+34
-0
No files found.
notes.md
0 → 100644
View file @
e63fdddc
### pda端搭建步骤
(web端更改为pda端)
#### 1. 左侧菜单栏调整
① 首先默认左侧菜单栏隐藏,sidebar.opened = false
② header.vue文件内设置menuState属性(控制左侧菜单栏显示还是隐藏),通过hamburger组件点击事件,每次点击取反并存储vuex
③layout/index文件下通过vuex存储的menuState属性来控制菜单栏显示和隐藏时的样式
```
<sidebar class="sidebar-container" :style="{display:sidebarType ? 'block':'none'}" />
<div class="main-container" :style="{marginLeft:sidebarType ? '54px':'0px'}">
<div class="nav-container fixed-header" :style="{width:sidebarType ? 'calc(100% - 63px)':'calc(100% - 12px)'}">
computed: {
sidebarType() {
return this.$store.state.app.menuState
},
}
```
#### 2.页面整体宽度调整
```
#app {
height: 100%;
overflow-x: hidden;
min-width: 300px;(设置的页面最小宽度)
}
```
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