From 7ede02141e258ab4c88e9b4daad966513d4dbe68 Mon Sep 17 00:00:00 2001 From: chenkl <321200875@qq.com> Date: Wed, 16 Dec 2020 17:32:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E9=87=8D=E6=9E=84layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icons/svg/layout-classic.svg | 39 ++ src/assets/icons/svg/layout-top.svg | 39 ++ src/assets/icons/svg/layout-topLeft.svg | 39 ++ src/components/Echart/index.vue | 4 +- src/components/Hamburger/index.vue | 3 +- src/components/Logo/index.vue | 18 +- src/components/Screenfull/index.vue | 11 +- src/components/ScrollPane/index.vue | 15 +- src/components/Setting/index.vue | 165 ++++++++ src/components/Sider/Item.vue | 12 +- src/components/Sider/Link.vue | 27 -- src/components/Sider/SiderItem.vue | 7 +- src/components/Sider/index.vue | 68 ++-- src/components/TagsView/ScrollPane.vue | 113 ++++++ src/components/TagsView/index.vue | 363 ++++++++++++++++++ src/components/UserInfo/index.vue | 71 ++++ src/pages/index/App.vue | 1 + .../index/layout/components/UserInfo.vue | 18 +- src/pages/index/layout/modules/Test.vue | 249 +++++++++--- src/pages/index/router/index.ts | 3 +- src/pages/index/store/modules/app.ts | 54 ++- src/pages/index/store/modules/tagsView.ts | 1 + src/pages/index/views/dashboard/index.vue | 65 +++- src/pages/index/views/level/Menu111.vue | 13 +- src/pages/index/views/level/Menu12.vue | 13 +- src/pages/index/views/level/Menu2.vue | 13 +- src/styles/reset.css | 4 +- src/styles/variables.less | 1 + 28 files changed, 1249 insertions(+), 180 deletions(-) create mode 100644 src/assets/icons/svg/layout-classic.svg create mode 100644 src/assets/icons/svg/layout-top.svg create mode 100644 src/assets/icons/svg/layout-topLeft.svg create mode 100644 src/components/Setting/index.vue delete mode 100644 src/components/Sider/Link.vue create mode 100644 src/components/TagsView/ScrollPane.vue create mode 100644 src/components/TagsView/index.vue create mode 100644 src/components/UserInfo/index.vue diff --git a/src/assets/icons/svg/layout-classic.svg b/src/assets/icons/svg/layout-classic.svg new file mode 100644 index 0000000..04904a1 --- /dev/null +++ b/src/assets/icons/svg/layout-classic.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/icons/svg/layout-top.svg b/src/assets/icons/svg/layout-top.svg new file mode 100644 index 0000000..c36ea49 --- /dev/null +++ b/src/assets/icons/svg/layout-top.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/icons/svg/layout-topLeft.svg b/src/assets/icons/svg/layout-topLeft.svg new file mode 100644 index 0000000..3d305ac --- /dev/null +++ b/src/assets/icons/svg/layout-topLeft.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/Echart/index.vue b/src/components/Echart/index.vue index 90dc22f..856cb43 100644 --- a/src/components/Echart/index.vue +++ b/src/components/Echart/index.vue @@ -55,9 +55,7 @@ export default defineComponent({ onMounted(() => { // 设置异步,不然图例一开始的宽度不正确。 - setTimeout(() => { - initChart() - }, 10) + initChart() __resizeHandler = debounce(() => { if (chart) { chart.resize() diff --git a/src/components/Hamburger/index.vue b/src/components/Hamburger/index.vue index d4ea57d..2f63751 100644 --- a/src/components/Hamburger/index.vue +++ b/src/components/Hamburger/index.vue @@ -1,5 +1,5 @@