From f9ac8d4406c8a7d644f9993dfb1e0cc923c62810 Mon Sep 17 00:00:00 2001 From: pdsuwwz Date: Fri, 16 Jun 2023 18:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=82=EF=B8=8F=20feat:=20layout=20=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 4 +- src/components/Footer/index.vue | 2 +- src/components/Layout/LayoutArea.vue | 102 +++++----- src/components/Layout/LayoutSection.vue | 35 ++-- src/components/Navigation/Avatar.vue | 2 +- src/components/Navigation/ChangeTheme.vue | 4 +- src/components/Navigation/NavBar.vue | 12 +- src/components/Navigation/Side/SideAction.vue | 2 +- .../{Footer/octocat.vue => Octocat.vue} | 4 +- .../HomeFront/components/QuickStart.vue | 92 ++++++++- .../HomeFront/pages/dashboard-console.vue | 181 +++++++++++------- src/modules/HomeFront/pages/overview.vue | 170 ++++++---------- .../components/ContainerLayout.vue | 24 +++ src/modules/UserAccount/pages/login.vue | 3 +- src/router/frontend/index.ts | 21 +- src/widgets/WorkTabs/TabsBack.vue | 55 ++++++ src/widgets/WorkTabs/TabsController.vue | 55 ++++++ src/widgets/WorkTabs/index.vue | 13 +- 18 files changed, 492 insertions(+), 289 deletions(-) rename src/components/{Footer/octocat.vue => Octocat.vue} (93%) create mode 100644 src/widgets/WorkTabs/TabsBack.vue create mode 100644 src/widgets/WorkTabs/TabsController.vue diff --git a/components.d.ts b/components.d.ts index 6d4c640..bb6a786 100644 --- a/components.d.ts +++ b/components.d.ts @@ -19,6 +19,7 @@ declare module 'vue' { LayoutSection: typeof import('./src/components/Layout/LayoutSection.vue')['default'] LayoutView: typeof import('./src/components/Layout/LayoutView.vue')['default'] LayoutWork: typeof import('./src/components/Layout/LayoutWork.vue')['default'] + NAutoComplete: typeof import('naive-ui')['NAutoComplete'] NAvatar: typeof import('naive-ui')['NAvatar'] NavBar: typeof import('./src/components/Navigation/NavBar.vue')['default'] NBreadcrumb: typeof import('naive-ui')['NBreadcrumb'] @@ -47,7 +48,8 @@ declare module 'vue' { NStatistic: typeof import('naive-ui')['NStatistic'] NSwitch: typeof import('naive-ui')['NSwitch'] NThing: typeof import('naive-ui')['NThing'] - Octocat: typeof import('./src/components/Footer/octocat.vue')['default'] + NTooltip: typeof import('naive-ui')['NTooltip'] + Octocat: typeof import('./src/components/Octocat.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] SearchCorporation: typeof import('./src/components/SearchSelect/SearchCorporation.vue')['default'] diff --git a/src/components/Footer/index.vue b/src/components/Footer/index.vue index 3125ec7..9059e5a 100644 --- a/src/components/Footer/index.vue +++ b/src/components/Footer/index.vue @@ -24,7 +24,7 @@ @@ -50,46 +53,41 @@ $headerHeight: 48px; overflow: hidden; .layout-area-container__top { - + z-index: 1; } .layout-area-container__bottom { display: flex; + flex-direction: column; flex: 1; - position: relative; + overflow-y: auto; - .layout-area-container__bottom__inner { - position: absolute; - inset: 1px 0 0; - display: flex; + .side-layout-area-menu-bar { + position: relative; + flex-direction: column; + width: 256px; + transition: width 0.28s; - .side-layout-area-menu-bar { - position: relative; - flex-direction: column; - width: 256px; - transition: width 0.28s; - - .layout-area-menu-bar__inner { - position: absolute; - inset: 0; - overflow-x: hidden; - overflow-y: auto; - padding: 24px; - scroll-behavior: smooth; - } + .layout-area-menu-bar__inner { + position: absolute; + inset: 0; + overflow-x: hidden; + overflow-y: auto; + padding: 24px; + scroll-behavior: smooth; } + } - .content-section-container { - display: flex; - flex: auto; - flex-direction: column; - min-width: 0; + .content-section-container { + display: flex; + flex: auto; + flex-direction: column; + min-width: 0; - .main-content-box { - flex: auto; - position: relative; - overflow: auto; - } + .main-content-box { + flex: auto; + position: relative; + overflow: auto; } } } diff --git a/src/components/Layout/LayoutSection.vue b/src/components/Layout/LayoutSection.vue index 0d168de..7fd15cd 100644 --- a/src/components/Layout/LayoutSection.vue +++ b/src/components/Layout/LayoutSection.vue @@ -1,22 +1,14 @@