From 0c732bc543464f801bbee90f29ca6d5e27125a96 Mon Sep 17 00:00:00 2001 From: lyt <1105290566@qq.com> Date: Fri, 29 Jan 2021 18:33:32 +0800 Subject: [PATCH] =?UTF-8?q?'admin-21.01.29:=E9=80=82=E9=85=8D=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E3=80=81=E9=83=A8=E5=88=86=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BC=98=E5=8C=96'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue-admin-wonderful-next/package.json | 1 + vue-admin-wonderful-next/src/store/index.ts | 1 + vue-admin-wonderful-next/src/theme/app.scss | 1 + .../src/theme/element.scss | 8 +++ .../src/theme/media/layout.scss | 17 ++++++ .../src/theme/media/media.scss | 1 + .../src/utils/themeConfig.ts | 1 + .../src/views/layout/component/aside.vue | 57 +++++++++++++------ .../src/views/layout/index.vue | 39 +++++-------- .../src/views/layout/logo/index.vue | 4 +- .../layout/navBars/breadcrumb/breadcrumb.vue | 2 +- .../layout/navBars/breadcrumb/setings.vue | 32 ++++++++++- .../views/layout/navBars/breadcrumb/user.vue | 27 ++++++++- .../layout/navBars/tagsView/tagsView.vue | 38 +++++++++---- .../src/views/layout/navMenu/vertical.vue | 12 +++- .../src/views/login/component/account.vue | 1 + 16 files changed, 183 insertions(+), 59 deletions(-) create mode 100644 vue-admin-wonderful-next/src/theme/media/layout.scss diff --git a/vue-admin-wonderful-next/package.json b/vue-admin-wonderful-next/package.json index 32223a0..bb0b570 100644 --- a/vue-admin-wonderful-next/package.json +++ b/vue-admin-wonderful-next/package.json @@ -9,6 +9,7 @@ "element-plus": "^1.0.2-beta.30", "mitt": "^2.1.0", "nprogress": "^0.2.0", + "screenfull": "^5.1.0", "sortablejs": "^1.13.0", "vue": "^3.0.5", "vue-router": "^4.0.2", diff --git a/vue-admin-wonderful-next/src/store/index.ts b/vue-admin-wonderful-next/src/store/index.ts index 4de5ed8..551e651 100644 --- a/vue-admin-wonderful-next/src/store/index.ts +++ b/vue-admin-wonderful-next/src/store/index.ts @@ -33,6 +33,7 @@ export interface RootStateTypes { isBreadcrumbIcon: boolean, isTagsviewIcon: boolean, isCacheTagsView: boolean, + isSortableTagsView: boolean, isFooter: boolean, isGrayscale: boolean, isInvert: boolean, diff --git a/vue-admin-wonderful-next/src/theme/app.scss b/vue-admin-wonderful-next/src/theme/app.scss index 0690d2e..4cf74a1 100644 --- a/vue-admin-wonderful-next/src/theme/app.scss +++ b/vue-admin-wonderful-next/src/theme/app.scss @@ -130,6 +130,7 @@ body, @extend .flex; flex-direction: column; width: 100%; + overflow: hidden; } .flex-margin { margin: auto; diff --git a/vue-admin-wonderful-next/src/theme/element.scss b/vue-admin-wonderful-next/src/theme/element.scss index 41d805e..7923d4e 100644 --- a/vue-admin-wonderful-next/src/theme/element.scss +++ b/vue-admin-wonderful-next/src/theme/element.scss @@ -917,3 +917,11 @@ .el-select-dropdown .el-scrollbar__wrap { overflow-x: scroll !important; } + +/* Drawer 抽屉 +------------------------------- */ +.el-drawer__body { + width: 100%; + height: 100%; + overflow: auto; +} diff --git a/vue-admin-wonderful-next/src/theme/media/layout.scss b/vue-admin-wonderful-next/src/theme/media/layout.scss new file mode 100644 index 0000000..9980814 --- /dev/null +++ b/vue-admin-wonderful-next/src/theme/media/layout.scss @@ -0,0 +1,17 @@ +@import './index.scss'; + +/* 页面宽度小于576px +------------------------------- */ +@media screen and (max-width: $xs) { + .el-message-box { + width: 80% !important; + } +} + +/* 页面宽度小于768px +------------------------------- */ +@media screen and (max-width: $sm) { + .layout-navbars-breadcrumb-hide { + display: none; + } +} diff --git a/vue-admin-wonderful-next/src/theme/media/media.scss b/vue-admin-wonderful-next/src/theme/media/media.scss index 72bc17b..8adf715 100644 --- a/vue-admin-wonderful-next/src/theme/media/media.scss +++ b/vue-admin-wonderful-next/src/theme/media/media.scss @@ -1,2 +1,3 @@ @import './login.scss'; @import './error.scss'; +@import './layout.scss'; diff --git a/vue-admin-wonderful-next/src/utils/themeConfig.ts b/vue-admin-wonderful-next/src/utils/themeConfig.ts index 6f51cec..9ac748e 100644 --- a/vue-admin-wonderful-next/src/utils/themeConfig.ts +++ b/vue-admin-wonderful-next/src/utils/themeConfig.ts @@ -29,6 +29,7 @@ export default { isBreadcrumbIcon: false, isTagsviewIcon: false, isCacheTagsView: false, + isSortableTagsView: true, isFooter: false, isGrayscale: false, isInvert: false, diff --git a/vue-admin-wonderful-next/src/views/layout/component/aside.vue b/vue-admin-wonderful-next/src/views/layout/component/aside.vue index 821e12d..ce84bf1 100644 --- a/vue-admin-wonderful-next/src/views/layout/component/aside.vue +++ b/vue-admin-wonderful-next/src/views/layout/component/aside.vue @@ -1,10 +1,18 @@