From 76cc6772d9652451de0fa578feab736dd7d6906e Mon Sep 17 00:00:00 2001
From: toesbieya <1647775459@qq.com>
Date: Sun, 24 May 2020 21:58:42 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F=E9=80=82=E5=BA=94?=
=?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=EF=BC=88=E7=9C=9F=E9=A6=99=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vue/src/assets/styles/index.scss | 1 -
vue/src/assets/styles/sidebar.scss | 8 ++
.../Navbar/components/Breadcrumb.vue | 1 -
.../Navbar/components/Hamburger.vue | 53 +++++++++++
.../Navbar/components/SettingDrawer.vue | 91 ++++---------------
vue/src/layout/components/Navbar/index.vue | 12 ++-
vue/src/layout/components/Sidebar/index.vue | 29 +++++-
vue/src/layout/index.vue | 35 ++++++-
vue/src/layout/mixin/ResizeHandler.js | 25 +++++
vue/src/store/modules/app.js | 1 +
vue/src/store/modules/setting.js | 34 +++++--
11 files changed, 195 insertions(+), 95 deletions(-)
create mode 100644 vue/src/layout/components/Navbar/components/Hamburger.vue
create mode 100644 vue/src/layout/mixin/ResizeHandler.js
diff --git a/vue/src/assets/styles/index.scss b/vue/src/assets/styles/index.scss
index a573051..2dbf271 100644
--- a/vue/src/assets/styles/index.scss
+++ b/vue/src/assets/styles/index.scss
@@ -2,7 +2,6 @@
@import "~element-ui/packages/theme-chalk/src/index";
@import "transition";
@import "element-ui";
-@import "sidebar";
@import "nprogress";
body {
diff --git a/vue/src/assets/styles/sidebar.scss b/vue/src/assets/styles/sidebar.scss
index b8658ee..4d7b054 100644
--- a/vue/src/assets/styles/sidebar.scss
+++ b/vue/src/assets/styles/sidebar.scss
@@ -9,6 +9,14 @@ $iconSize: 17px;
overflow: hidden;
flex-shrink: 0;
transition: all .3s;
+ top: 0;
+ bottom: 0;
+ z-index: 10;
+
+ //移动端时为fixed
+ &.mobile {
+ position: fixed;
+ }
//折叠设置
&.collapse-sidebar {
diff --git a/vue/src/layout/components/Navbar/components/Breadcrumb.vue b/vue/src/layout/components/Navbar/components/Breadcrumb.vue
index f70c706..284bc9d 100644
--- a/vue/src/layout/components/Navbar/components/Breadcrumb.vue
+++ b/vue/src/layout/components/Navbar/components/Breadcrumb.vue
@@ -37,7 +37,6 @@
.app-breadcrumb.el-breadcrumb {
display: inline-block;
line-height: 50px;
- margin-left: 15px;
.no-redirect {
color: $--color-gray;
diff --git a/vue/src/layout/components/Navbar/components/Hamburger.vue b/vue/src/layout/components/Navbar/components/Hamburger.vue
new file mode 100644
index 0000000..f3d10c4
--- /dev/null
+++ b/vue/src/layout/components/Navbar/components/Hamburger.vue
@@ -0,0 +1,53 @@
+
+
+
diff --git a/vue/src/layout/components/Navbar/components/SettingDrawer.vue b/vue/src/layout/components/Navbar/components/SettingDrawer.vue
index f070412..5433b0a 100644
--- a/vue/src/layout/components/Navbar/components/SettingDrawer.vue
+++ b/vue/src/layout/components/Navbar/components/SettingDrawer.vue
@@ -39,83 +39,30 @@
diff --git a/vue/src/layout/components/Navbar/index.vue b/vue/src/layout/components/Navbar/index.vue
index 5fb8c6f..0b8a6cb 100644
--- a/vue/src/layout/components/Navbar/index.vue
+++ b/vue/src/layout/components/Navbar/index.vue
@@ -1,5 +1,7 @@
+
+
diff --git a/vue/src/layout/index.vue b/vue/src/layout/index.vue
index b7fc563..3e5e706 100644
--- a/vue/src/layout/index.vue
+++ b/vue/src/layout/index.vue
@@ -5,6 +5,12 @@