From 04cea2907dda0f4d9917160d7bbb738dff7ff2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98chen=2Ehome=E2=80=99?= <1147347984@qq.com> Date: Thu, 11 Aug 2022 22:45:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(components):=20=E5=A2=9E=E5=8A=A0=E5=A4=B4?= =?UTF-8?q?=E9=83=A8=E7=9A=84=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE: 黑暗模式、全屏、通知、设置、github、用户中心 --- src/layouts/BasicLayout/index.vue | 33 ++++++++++++++--- .../components/{ => header}/Breadcrumb.vue | 3 +- .../{ => header}/CollapaseButton.vue | 4 +- src/layouts/components/header/DarkMode.vue | 21 +++++++++++ src/layouts/components/header/FullScreen.vue | 21 +++++++++++ src/layouts/components/header/Github.vue | 18 +++++++++ src/layouts/components/header/Notices.vue | 18 +++++++++ src/layouts/components/header/Setting.vue | 26 +++++++++++++ src/layouts/components/header/UserCenter.vue | 37 +++++++++++++++++++ src/layouts/components/index.ts | 19 +++++++--- src/layouts/components/{ => sider}/Logo.vue | 0 src/layouts/components/{ => sider}/Menu.vue | 2 +- src/store/modules/app.ts | 19 +++++++++- 13 files changed, 205 insertions(+), 16 deletions(-) rename src/layouts/components/{ => header}/Breadcrumb.vue (92%) rename src/layouts/components/{ => header}/CollapaseButton.vue (77%) create mode 100644 src/layouts/components/header/DarkMode.vue create mode 100644 src/layouts/components/header/FullScreen.vue create mode 100644 src/layouts/components/header/Github.vue create mode 100644 src/layouts/components/header/Notices.vue create mode 100644 src/layouts/components/header/Setting.vue create mode 100644 src/layouts/components/header/UserCenter.vue rename src/layouts/components/{ => sider}/Logo.vue (100%) rename src/layouts/components/{ => sider}/Menu.vue (96%) diff --git a/src/layouts/BasicLayout/index.vue b/src/layouts/BasicLayout/index.vue index 0267e79..79c7346 100644 --- a/src/layouts/BasicLayout/index.vue +++ b/src/layouts/BasicLayout/index.vue @@ -5,23 +5,46 @@ - - - + +
+ + +
+
+ + + + + + +
- Ench admin + + {{ appStore.title }} +
diff --git a/src/layouts/components/Breadcrumb.vue b/src/layouts/components/header/Breadcrumb.vue similarity index 92% rename from src/layouts/components/Breadcrumb.vue rename to src/layouts/components/header/Breadcrumb.vue index f2c2933..fa16463 100644 --- a/src/layouts/components/Breadcrumb.vue +++ b/src/layouts/components/header/Breadcrumb.vue @@ -1,5 +1,5 @@