浏览代码

修改图表弹框样式

Zt 1 年之前
父节点
当前提交
124f867a1d

+ 4 - 1
reado-app/static/webview/bar-wv.html

@@ -104,9 +104,12 @@
 							show: false
 						}
 					},
+					textStyle:{
+						color:'#ffffff'
+					},
 					confine: true,
 					extraCssText: 'white-space: normal; word-break: break-all;',
-					backgroundColor: 'rgba(255,255,255,0.1)', //通过设置rgba调节背景颜色与透明度
+					backgroundColor: 'rgba(108,106,120,0.9)',
 					position: 'inside',
 					formatter: function(params) {
 						let result = ''

+ 4 - 1
reado-app/static/webview/dataItem-wv.html

@@ -54,9 +54,12 @@
 							show: false
 						}
 					},
+					textStyle:{
+						color:'#ffffff'
+					},
 					confine: true,
 					extraCssText: 'white-space: normal; word-break: break-all;',
-					backgroundColor: 'rgba(255,255,255,0.1)', //通过设置rgba调节背景颜色与透明度
+					backgroundColor: 'rgba(108,106,120,0.9)',
 					position: 'inside',
 					formatter: function(params) {
 						let result = ''

+ 4 - 1
reado-app/static/webview/line-wv.html

@@ -105,9 +105,12 @@
 							show: false
 						},
 					},
+					textStyle:{
+						color:'#ffffff'
+					},
 					confine: true,
 					extraCssText: 'white-space: normal; word-break: break-all;',
-					backgroundColor: 'rgba(255,255,255,0.1)', //通过设置rgba调节背景颜色与透明度
+					backgroundColor: 'rgba(108,106,120,0.9)', //通过设置rgba调节背景颜色与透明度
 					position: 'inside',
 					formatter: function(params) {
 						let result = ''

+ 4 - 0
reado-app/static/webview/pie-wv.html

@@ -88,6 +88,10 @@
 					trigger: 'item',
 					confine: true,
 					extraCssText: 'white-space: normal; word-break: break-all;',
+					backgroundColor: 'rgba(108,106,120,0.9)',
+					textStyle:{
+						color:'#ffffff'
+					},
 				},
 				series: []
 			};