From b03a4957129e37225c167c2562021118d02117bf Mon Sep 17 00:00:00 2001 From: MTrun <1262327911@qq.com> Date: Fri, 14 Jan 2022 16:17:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Echart=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=95=B0=E6=8D=AE=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.css | 85 ++++++++++++++ index.html | 45 ++++---- src/components/AppleControlBtn/index.vue | 51 +++++---- .../components/Chart/bar/barCommon/index.ts | 11 ++ .../components/Chart/bar/barCommon/index.vue | 13 +++ src/packages/components/Chart/index.ts | 3 + .../Decorate/border/borderCommon/index.ts | 11 ++ .../Decorate/border/borderCommon/index.vue | 13 +++ src/packages/components/Decorate/index.ts | 3 + src/packages/index.d.ts | 14 +++ src/packages/index.ts | 9 ++ .../modules/packagesStore/packagesStore.d.ts | 7 ++ .../modules/packagesStore/packagesStore.ts | 18 +++ src/styles/common/var.scss | 2 +- .../components/ChartCommon/index.ts | 3 - .../components/ChartCommon/index.vue | 54 --------- .../ContentCharts/components/Charts/index.ts | 3 + .../ContentCharts/components/Charts/index.vue | 108 ++++++++++++++++++ .../components/DecorateCommon/index.ts | 3 - .../components/Decorates/index.ts | 3 + .../{DecorateCommon => Decorates}/index.vue | 0 .../components/TableCommon/index.ts | 3 - .../ContentCharts/components/Tables/index.ts | 3 + .../{TableCommon => Tables}/index.vue | 0 .../components/TextCommon/index.ts | 3 - .../ContentCharts/components/Texts/index.ts | 3 + .../{TextCommon => Texts}/index.vue | 0 .../ContentCharts/hooks/asideHook.ts | 97 ++++++++++++++++ .../ContentCharts/hooks/layoutHook.ts | 20 ++++ .../chart/components/ContentCharts/index.vue | 89 ++------------- types/config.d.ts | 0 types/global.d.ts | 3 +- 32 files changed, 493 insertions(+), 187 deletions(-) create mode 100644 index.css create mode 100644 src/packages/components/Chart/bar/barCommon/index.ts create mode 100644 src/packages/components/Chart/bar/barCommon/index.vue create mode 100644 src/packages/components/Chart/index.ts create mode 100644 src/packages/components/Decorate/border/borderCommon/index.ts create mode 100644 src/packages/components/Decorate/border/borderCommon/index.vue create mode 100644 src/packages/components/Decorate/index.ts create mode 100644 src/packages/index.d.ts create mode 100644 src/store/modules/packagesStore/packagesStore.d.ts create mode 100644 src/store/modules/packagesStore/packagesStore.ts delete mode 100644 src/views/chart/components/ContentCharts/components/ChartCommon/index.ts delete mode 100644 src/views/chart/components/ContentCharts/components/ChartCommon/index.vue create mode 100644 src/views/chart/components/ContentCharts/components/Charts/index.ts create mode 100644 src/views/chart/components/ContentCharts/components/Charts/index.vue delete mode 100644 src/views/chart/components/ContentCharts/components/DecorateCommon/index.ts create mode 100644 src/views/chart/components/ContentCharts/components/Decorates/index.ts rename src/views/chart/components/ContentCharts/components/{DecorateCommon => Decorates}/index.vue (100%) delete mode 100644 src/views/chart/components/ContentCharts/components/TableCommon/index.ts create mode 100644 src/views/chart/components/ContentCharts/components/Tables/index.ts rename src/views/chart/components/ContentCharts/components/{TableCommon => Tables}/index.vue (100%) delete mode 100644 src/views/chart/components/ContentCharts/components/TextCommon/index.ts create mode 100644 src/views/chart/components/ContentCharts/components/Texts/index.ts rename src/views/chart/components/ContentCharts/components/{TextCommon => Texts}/index.vue (100%) create mode 100644 src/views/chart/components/ContentCharts/hooks/asideHook.ts create mode 100644 src/views/chart/components/ContentCharts/hooks/layoutHook.ts delete mode 100644 types/config.d.ts diff --git a/index.css b/index.css new file mode 100644 index 00000000..3e422da2 --- /dev/null +++ b/index.css @@ -0,0 +1,85 @@ +* { + margin: 0; +} +.first-loading-wrp { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + background-color: #17171a; +} +.first-loading-wrp > h1 { + font-size: 128px; +} +.first-loading-wrp .loading-wrp { + padding: 98px; + display: flex; + justify-content: center; + align-items: center; +} +.dot { + animation: antRotate 1.2s infinite linear; + transform: rotate(45deg); + position: relative; + display: inline-block; + font-size: 32px; + width: 32px; + height: 32px; + box-sizing: border-box; +} +.dot i { + width: 14px; + height: 14px; + position: absolute; + display: block; + background-color: #1890ff; + border-radius: 100%; + transform: scale(0.75); + transform-origin: 50% 50%; + opacity: 0.3; + animation: antSpinMove 1s infinite linear alternate; +} +.dot i:nth-child(1) { + top: 0; + left: 0; +} +.dot i:nth-child(2) { + top: 0; + right: 0; + -webkit-animation-delay: 0.4s; + animation-delay: 0.4s; +} +.dot i:nth-child(3) { + right: 0; + bottom: 0; + -webkit-animation-delay: 0.8s; + animation-delay: 0.8s; +} +.dot i:nth-child(4) { + bottom: 0; + left: 0; + -webkit-animation-delay: 1.2s; + animation-delay: 1.2s; +} +@keyframes antRotate { + to { + -webkit-transform: rotate(405deg); + transform: rotate(405deg); + } +} +@-webkit-keyframes antRotate { + to { + -webkit-transform: rotate(405deg); + transform: rotate(405deg); + } +} +@keyframes antSpinMove { + to { + opacity: 1; + } +} +@-webkit-keyframes antSpinMove { + to { + opacity: 1; + } +} diff --git a/index.html b/index.html index b65bd6d6..ca956930 100644 --- a/index.html +++ b/index.html @@ -1,26 +1,27 @@ - - - - - - - GoView - - - - -
-
-
- + + + + + + + GoView + + + + + +
+
+
+ +
+
-
-
- - + + diff --git a/src/components/AppleControlBtn/index.vue b/src/components/AppleControlBtn/index.vue index b377dda4..21d1063f 100644 --- a/src/components/AppleControlBtn/index.vue +++ b/src/components/AppleControlBtn/index.vue @@ -3,7 +3,7 @@