From 6a0a093dba38d4c9e819a45a70aec8e340da9ca0 Mon Sep 17 00:00:00 2001
From: wangqi <magical1908@outlook.com>
Date: 星期三, 31 三月 2021 19:28:30 +0800
Subject: [PATCH] 图表不显示问题

---
 src/conf/Styles.js |   37 +++++++++++++++++--------------------
 1 files changed, 17 insertions(+), 20 deletions(-)

diff --git a/src/conf/Styles.js b/src/conf/Styles.js
index 42416e5..9f6457d 100644
--- a/src/conf/Styles.js
+++ b/src/conf/Styles.js
@@ -1,24 +1,21 @@
-export const LineStyles = {
+const defaultLineStyle = {
+  fill: true,
+  weight: 3,
+  fillColor: '#73b2ff',
+  color: '#73b2ff',
+  fillOpacity: 0.2,
+  opacity: 1,
+  dashArray: '4,4',
+  dashSpeed: -5,
+  size: [20, 20]
+}
+
+const customStyles = {
   pipeline: {
-    fill: true,
-    weight: 2,
-    fillColor: '#06cccc',
-    color: '#06cccc',
-    fillOpacity: 0.2,
-    opacity: 0.8,
-    dashArray: '10,4',
-    dashSpeed: -10
   }
 }
-export const PointStyles = {
-  pipeline: {
-    fill: true,
-    weight: 2,
-    fillColor: '#06cccc',
-    color: '#06cccc',
-    fillOpacity: 0.2,
-    opacity: 0.8,
-    dashArray: '10,4',
-    dashSpeed: -10
-  }
+
+export default {
+  defaultLineStyle,
+  customStyles
 }

--
Gitblit v1.8.0