From 4bf5b04d542014a49c5a41b20935cef35033a518 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 15 Feb 2022 20:27:53 +0800 Subject: [PATCH] =?UTF-8?q?v3.5.0=20=E6=96=B0=E5=A2=9E=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=98=BE=E7=A4=BA=E9=A3=8E=E6=A0=BCTopNav?= =?UTF-8?q?=EF=BC=88false=E4=B8=BA=E5=B7=A6=E4=BE=A7=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=EF=BC=8Ctrue=E4=B8=BA=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E8=8F=9C=E5=8D=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/assets/styles/ruoyi.scss | 6 + yudao-ui-admin/src/assets/styles/sidebar.scss | 3 - .../src/components/TopNav/index.vue | 143 ++++++++++++++++++ .../src/layout/components/Navbar.vue | 12 +- .../src/layout/components/Settings/index.vue | 131 +++++++++------- yudao-ui-admin/src/settings.js | 7 +- yudao-ui-admin/src/store/getters.js | 3 + .../src/store/modules/permission.js | 19 ++- yudao-ui-admin/src/store/modules/settings.js | 3 +- 9 files changed, 261 insertions(+), 66 deletions(-) create mode 100644 yudao-ui-admin/src/components/TopNav/index.vue diff --git a/yudao-ui-admin/src/assets/styles/ruoyi.scss b/yudao-ui-admin/src/assets/styles/ruoyi.scss index de1db7f34..c7ff69c2a 100644 --- a/yudao-ui-admin/src/assets/styles/ruoyi.scss +++ b/yudao-ui-admin/src/assets/styles/ruoyi.scss @@ -176,6 +176,12 @@ color: #FFFFFF; } +/* submenu item */ +.el-menu--horizontal > .el-submenu .el-submenu__title { + height: 50px !important; + line-height: 50px !important; +} + /* text color */ .text-navy { color: #1ab394; diff --git a/yudao-ui-admin/src/assets/styles/sidebar.scss b/yudao-ui-admin/src/assets/styles/sidebar.scss index 0eb8e78dc..2f368c3dd 100644 --- a/yudao-ui-admin/src/assets/styles/sidebar.scss +++ b/yudao-ui-admin/src/assets/styles/sidebar.scss @@ -135,9 +135,6 @@ margin-left: 20px; } - .el-submenu__icon-arrow { - display: none; - } } } diff --git a/yudao-ui-admin/src/components/TopNav/index.vue b/yudao-ui-admin/src/components/TopNav/index.vue new file mode 100644 index 000000000..393b9e114 --- /dev/null +++ b/yudao-ui-admin/src/components/TopNav/index.vue @@ -0,0 +1,143 @@ + + + + + diff --git a/yudao-ui-admin/src/layout/components/Navbar.vue b/yudao-ui-admin/src/layout/components/Navbar.vue index b11460a37..7267f8d97 100644 --- a/yudao-ui-admin/src/layout/components/Navbar.vue +++ b/yudao-ui-admin/src/layout/components/Navbar.vue @@ -2,12 +2,13 @@