diff --git a/src/components/Fullscreen/index.vue b/src/components/Fullscreen/index.vue new file mode 100644 index 00000000..bd85b4b4 --- /dev/null +++ b/src/components/Fullscreen/index.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue index 6ab2eb6d..c43073a2 100644 --- a/src/components/Hamburger/index.vue +++ b/src/components/Hamburger/index.vue @@ -1,15 +1,16 @@ + + - diff --git a/src/layout/components/NavBar/components/NavbarRight.vue b/src/layout/components/NavBar/components/NavbarRight.vue new file mode 100644 index 00000000..1b0ef528 --- /dev/null +++ b/src/layout/components/NavBar/components/NavbarRight.vue @@ -0,0 +1,81 @@ + + + + diff --git a/src/components/Notice/index.vue b/src/layout/components/NavBar/components/Notification.vue similarity index 100% rename from src/components/Notice/index.vue rename to src/layout/components/NavBar/components/Notification.vue diff --git a/src/layout/components/NavBar/components/UserProfile.vue b/src/layout/components/NavBar/components/UserProfile.vue new file mode 100644 index 00000000..ccf8911b --- /dev/null +++ b/src/layout/components/NavBar/components/UserProfile.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/src/layout/components/NavBar/index.vue b/src/layout/components/NavBar/index.vue index c985c0b9..9e8c61a5 100644 --- a/src/layout/components/NavBar/index.vue +++ b/src/layout/components/NavBar/index.vue @@ -1,15 +1,13 @@ @@ -18,16 +16,25 @@ import { useAppStore } from "@/store"; const appStore = useAppStore(); +// 侧边栏是否打开 +const isSidebarOpened = computed(() => appStore.sidebar.opened); + +// 展开/收缩菜单 function toggleSideBar() { appStore.toggleSidebar(); } diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 67a3df09..cb3d90a4 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -1,25 +1,28 @@