From a0fdd752d433c6e85d32b1cd342577dbaa56ec01 Mon Sep 17 00:00:00 2001 From: MTrun <1262327911@qq.com> Date: Sat, 8 Jan 2022 21:01:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=94=B6=E7=BC=A9?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/naive.ts | 2 + src/styles/common/style.scss | 6 +- .../chart/components/ContentBox/index.vue | 32 +++++++++- .../chart/components/ContentCharts/index.vue | 28 +++++++-- .../ContentDetails/components/Behind/index.ts | 3 + .../components/Behind/index.vue | 13 ++++ .../components/Setting/index.ts | 3 + .../components/Setting/index.vue | 13 ++++ .../chart/components/ContentDetails/index.vue | 62 ++++++++++++++----- .../chart/components/ContentLayers/index.vue | 30 +++++++-- 10 files changed, 160 insertions(+), 32 deletions(-) create mode 100644 src/views/chart/components/ContentDetails/components/Behind/index.ts create mode 100644 src/views/chart/components/ContentDetails/components/Behind/index.vue create mode 100644 src/views/chart/components/ContentDetails/components/Setting/index.ts create mode 100644 src/views/chart/components/ContentDetails/components/Setting/index.vue diff --git a/src/plugins/naive.ts b/src/plugins/naive.ts index 9c6618d0..31a17036 100644 --- a/src/plugins/naive.ts +++ b/src/plugins/naive.ts @@ -9,6 +9,7 @@ import { NH4, NText, NTime, + NEllipsis, NConfigProvider, NMessageProvider, NDialogProvider, @@ -91,6 +92,7 @@ const naive = create({ NH4, NText, NTime, + NEllipsis, NMessageProvider, NDialogProvider, NConfigProvider, diff --git a/src/styles/common/style.scss b/src/styles/common/style.scss index cfa7aaec..a93904db 100644 --- a/src/styles/common/style.scss +++ b/src/styles/common/style.scss @@ -5,7 +5,7 @@ // extends // 过度 .go-transition { - transition: all 0.2s; + transition: all 0.4s; } .go-flex-center { @@ -15,6 +15,10 @@ text-align: center; } +.go-flex-no-wrap { + flex-wrap: nowrap!important; +} + .go-absolute-center { position: absolute; top: 50%; diff --git a/src/views/chart/components/ContentBox/index.vue b/src/views/chart/components/ContentBox/index.vue index 0de8a5ea..ea232572 100644 --- a/src/views/chart/components/ContentBox/index.vue +++ b/src/views/chart/components/ContentBox/index.vue @@ -1,10 +1,22 @@