From 0b0b09ff2285abf99e41d822d2b5c6f0ca0ee239 Mon Sep 17 00:00:00 2001
From: YANGDL <114714267@qq.com>
Date: 星期三, 10 三月 2021 10:17:51 +0800
Subject: [PATCH] 修复ie下不能显示的问题
---
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..2061afb 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: '5,5',
+ 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