From 958589edd099efabef36a85dd407fbef7db35f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Wed, 11 May 2022 14:54:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppIcons/index.js | 1 + src/layout/components/header/HeaderAction.vue | 109 ------------------ .../header/{ => components}/BreadCrumb.vue | 3 +- .../header/components/FullScreen.vue | 15 +++ .../header/components/MenuCollapse.vue | 15 +++ .../header/components/UserAvatar.vue | 54 +++++++++ src/layout/components/header/index.vue | 25 ++-- 7 files changed, 99 insertions(+), 123 deletions(-) delete mode 100644 src/layout/components/header/HeaderAction.vue rename src/layout/components/header/{ => components}/BreadCrumb.vue (85%) create mode 100644 src/layout/components/header/components/FullScreen.vue create mode 100644 src/layout/components/header/components/MenuCollapse.vue create mode 100644 src/layout/components/header/components/UserAvatar.vue diff --git a/src/components/AppIcons/index.js b/src/components/AppIcons/index.js index 91cdb3e..58641c4 100644 --- a/src/components/AppIcons/index.js +++ b/src/components/AppIcons/index.js @@ -16,6 +16,7 @@ export { default as IconExpandRight } from '~icons/mdi/arrow-expand-right' export { default as IconMenuTable } from '~icons/mdi/table' export { default as IconMenuCollapse } from '~icons/mdi/format-indent-decrease' export { default as IconMenuExpand } from '~icons/mdi/format-indent-increase' +export { default as IconExit } from '~icons/mdi/exit-to-app' export { default as IconFullscreen } from '~icons/ant-design/fullscreen-outlined' export { default as IconFullscreenExit } from '~icons/ant-design/fullscreen-exit-outlined' diff --git a/src/layout/components/header/HeaderAction.vue b/src/layout/components/header/HeaderAction.vue deleted file mode 100644 index bb9497f..0000000 --- a/src/layout/components/header/HeaderAction.vue +++ /dev/null @@ -1,109 +0,0 @@ - - - - - diff --git a/src/layout/components/header/BreadCrumb.vue b/src/layout/components/header/components/BreadCrumb.vue similarity index 85% rename from src/layout/components/header/BreadCrumb.vue rename to src/layout/components/header/components/BreadCrumb.vue index cc6144d..73e6ea7 100644 --- a/src/layout/components/header/BreadCrumb.vue +++ b/src/layout/components/header/components/BreadCrumb.vue @@ -7,8 +7,7 @@ + + diff --git a/src/layout/components/header/components/MenuCollapse.vue b/src/layout/components/header/components/MenuCollapse.vue new file mode 100644 index 0000000..69f9980 --- /dev/null +++ b/src/layout/components/header/components/MenuCollapse.vue @@ -0,0 +1,15 @@ + + + + + diff --git a/src/layout/components/header/components/UserAvatar.vue b/src/layout/components/header/components/UserAvatar.vue new file mode 100644 index 0000000..d00e027 --- /dev/null +++ b/src/layout/components/header/components/UserAvatar.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/src/layout/components/header/index.vue b/src/layout/components/header/index.vue index 5bfb924..b3290f2 100644 --- a/src/layout/components/header/index.vue +++ b/src/layout/components/header/index.vue @@ -1,24 +1,21 @@