Bläddra i källkod

fix:修改迷你图默认颜色

liu.shiyi 1 år sedan
förälder
incheckning
dc3df52394

+ 2 - 2
data-room-ui/packages/G2Plots/折线图/迷你基础折线图.js

@@ -70,7 +70,7 @@ const setting = [
     type: 'gradual', // 设置组件类型
     field: 'lineStyle_stroke', // 字段
     optionField: 'lineStyle.stroke', // 对应options中的字段
-    value: 'l(0) 0:#648ff7 1:#62FF00',
+    value: 'l(0) 0:#6b74e4 1:#4391f4',
     tabName: 'custom',
     groupName: 'graph'
   },
@@ -100,7 +100,7 @@ const option = {
   autoFit: true,
   smooth: true,
   lineStyle: {
-    stroke: 'l(0) 0:#648ff7 1:#62FF00',
+    stroke: 'l(0) 0:#6b74e4 1:#4391f4',
     lineWidth: 2
   }
 }

+ 4 - 4
data-room-ui/packages/G2Plots/折线图/迷你面积图.js

@@ -69,7 +69,7 @@ const setting = [
     type: 'gradual', // 设置组件类型
     field: 'line_color', // 字段
     optionField: 'line.color', // 对应options中的字段
-    value: 'l(0) 0:#648ff7 1:#62FF00',
+    value: 'l(0) 0:#6b74e4 1:#4391f4',
     tabName: 'custom',
     groupName: 'graph'
   },
@@ -78,7 +78,7 @@ const setting = [
     type: 'gradual', // 设置组件类型
     field: 'areaStyle_fill', // 字段
     optionField: 'areaStyle.fill', // 对应options中的字段
-    value: 'l(0) 0:#648ff7 1:#62FF00',
+    value: 'l(0) 0:#6b74e4 1:#4391f4',
     tabName: 'custom',
     groupName: 'graph'
   },
@@ -123,11 +123,11 @@ const option = {
   autoFit: true,
   smooth: true,
   areaStyle: {
-    fill: 'l(0) 0:#648ff7 1:#62FF00',
+    fill: 'l(0) 0:#6b74e4 1:#4391f4',
     fillOpacity: 0.15
   },
   line: {
-    color: 'l(0) 0:#648ff7 1:#62FF00',
+    color: 'l(0) 0:#6b74e4 1:#4391f4',
     size: 1
   }
 }