From 012eed6f670ff21f5539e4290b712dd4e392e8c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?=
<1262327911@qq.com>
Date: Sat, 25 Jun 2022 15:51:38 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E8=BF=9B=E5=BA=A6?=
=?UTF-8?q?=E6=9D=A1=E5=A4=9A=E4=B8=AA=E9=85=8D=E7=BD=AE=E9=A1=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/Charts/Mores/Process/config.ts | 18 +++++-
.../Charts/Mores/Process/config.vue | 56 ++++++++++++-------
.../components/Charts/Mores/Process/index.vue | 38 +++++++++++--
3 files changed, 84 insertions(+), 28 deletions(-)
diff --git a/src/packages/components/Charts/Mores/Process/config.ts b/src/packages/components/Charts/Mores/Process/config.ts
index 34d86502..16b47327 100644
--- a/src/packages/components/Charts/Mores/Process/config.ts
+++ b/src/packages/components/Charts/Mores/Process/config.ts
@@ -33,15 +33,29 @@ export const indicatorPlacements = [
export const option = {
dataset: 36,
+ // 默认类型
type: types[2].value,
+ // 进行时效果
+ processing: true,
+ // 主颜色
color: '#4992FFFF',
+ // 轨道颜色
+ railColor: '#3e3e3f',
+ // 指标
+ unit: '%',
+ // 指标大小
+ indicatorTextSize: 34,
// 指标位置(线条时可用)
- indicatorPlacement: "outside"
+ indicatorPlacement: 'outside',
+ // 指标颜色
+ indicatorTextColor: '#FFFFFFFF',
+ // 偏移角度
+ offsetDegree: 0
}
export default class Config extends publicConfig implements CreateComponentType {
public key = ProcessConfig.key
- public attr = {...chartInitConfig, h: 500, zIndex: -1}
+ public attr = { ...chartInitConfig, h: 500, zIndex: -1 }
public chartConfig = cloneDeep(ProcessConfig)
public option = cloneDeep(option)
}
\ No newline at end of file
diff --git a/src/packages/components/Charts/Mores/Process/config.vue b/src/packages/components/Charts/Mores/Process/config.vue
index 74003105..2842d910 100644
--- a/src/packages/components/Charts/Mores/Process/config.vue
+++ b/src/packages/components/Charts/Mores/Process/config.vue
@@ -1,29 +1,49 @@
-
+
-
+
-
+
+
+
-
+
+
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+ 进行时动画
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -31,14 +51,10 @@
\ No newline at end of file
+
diff --git a/src/packages/components/Charts/Mores/Process/index.vue b/src/packages/components/Charts/Mores/Process/index.vue
index 1bba3c80..f2ad2035 100644
--- a/src/packages/components/Charts/Mores/Process/index.vue
+++ b/src/packages/components/Charts/Mores/Process/index.vue
@@ -1,27 +1,53 @@
+ :rail-color="railColor"
+ :offset-degree="offsetDegree"
+ >
+
+ {{dataset}} {{unit}}
+
+
\ No newline at end of file
+