fix: echarts 图表配置 className 调整鼠标移入弹框主题样式
This commit is contained in:
@@ -363,3 +363,8 @@ td .nz-icon-gear:before{
|
||||
}
|
||||
}
|
||||
}
|
||||
.chart-bar,.chart-gauge,.chart-time-series,.chart-treemap,.chart-pie {
|
||||
background-color: $--chart-background-color !important;
|
||||
border-color: $--chart-border-color !important;
|
||||
color: $--color-text-regular !important;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,8 @@ const chartBarOption = {
|
||||
extraCssText: 'z-index:1000;',
|
||||
z: 9,
|
||||
animation: false,
|
||||
appendToBody: true
|
||||
appendToBody: true,
|
||||
className: 'chart-bar'
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
|
||||
@@ -6,7 +6,8 @@ const chartGaugeOption = {
|
||||
extraCssText: 'z-index:1000;',
|
||||
z: 9,
|
||||
animation: false,
|
||||
appendToBody: true
|
||||
appendToBody: true,
|
||||
className: 'chart-gauge'
|
||||
},
|
||||
series: [
|
||||
{
|
||||
|
||||
@@ -6,7 +6,8 @@ const chartPieOption = {
|
||||
extraCssText: 'z-index:1000;',
|
||||
z: 9,
|
||||
animation: false,
|
||||
appendToBody: true
|
||||
appendToBody: true,
|
||||
className: 'chart-pie'
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
|
||||
@@ -37,7 +37,8 @@ export const chartTimeSeriesLineOption = {
|
||||
extraCssText: 'z-index:99999999;',
|
||||
z: 9,
|
||||
animation: false,
|
||||
appendToBody: true
|
||||
appendToBody: true,
|
||||
className: 'chart-time-series'
|
||||
// formatter: 动态生成
|
||||
},
|
||||
color: initColor(),
|
||||
|
||||
@@ -8,6 +8,7 @@ const chartTreemapOption = {
|
||||
z: 9,
|
||||
animation: false,
|
||||
appendToBody: true,
|
||||
className: 'chart-treemap',
|
||||
formatter: function (info) {
|
||||
const value = info.value
|
||||
const treePathInfo = info.treePathInfo
|
||||
|
||||
Reference in New Issue
Block a user