From 1e4a250da10b01bfd4e667d533f6cae9b8c58fe9 Mon Sep 17 00:00:00 2001 From: Vben Date: Mon, 29 Mar 2021 23:01:41 +0800 Subject: [PATCH] fix(abakysis): fix tooltip style,fix #436 --- src/views/dashboard/analysis/components/AnalysisBar.vue | 1 - src/views/dashboard/analysis/components/AnalysisLine.vue | 2 -- src/views/dashboard/analysis/components/AnalysisPie.vue | 2 -- src/views/dashboard/analysis/components/TrendLine.vue | 1 - 4 files changed, 6 deletions(-) diff --git a/src/views/dashboard/analysis/components/AnalysisBar.vue b/src/views/dashboard/analysis/components/AnalysisBar.vue index 38163472..98a4f6cf 100644 --- a/src/views/dashboard/analysis/components/AnalysisBar.vue +++ b/src/views/dashboard/analysis/components/AnalysisBar.vue @@ -18,7 +18,6 @@ setOptions({ tooltip: { trigger: 'axis', - backgroundColor: 'rgba(0, 0, 0, .6)', axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'shadow', // 默认为直线,可选为:'line' | 'shadow' diff --git a/src/views/dashboard/analysis/components/AnalysisLine.vue b/src/views/dashboard/analysis/components/AnalysisLine.vue index b1d89339..23ce4227 100644 --- a/src/views/dashboard/analysis/components/AnalysisLine.vue +++ b/src/views/dashboard/analysis/components/AnalysisLine.vue @@ -22,12 +22,10 @@ tooltip: { trigger: 'axis', padding: 3, - backgroundColor: 'rgba(0, 0, 0, .6)', borderColor: '#777', borderWidth: 1, }, legend: { - icon: 'rect', itemWidth: 15, itemHeight: 4, left: 80, diff --git a/src/views/dashboard/analysis/components/AnalysisPie.vue b/src/views/dashboard/analysis/components/AnalysisPie.vue index 6bb060fc..9efe7692 100644 --- a/src/views/dashboard/analysis/components/AnalysisPie.vue +++ b/src/views/dashboard/analysis/components/AnalysisPie.vue @@ -41,10 +41,8 @@ ], tooltip: { trigger: 'item', - backgroundColor: 'rgba(0, 0, 0, .6)', }, legend: { - icon: 'circle', itemHeight: 10, type: 'scroll', orient: 'vertical', diff --git a/src/views/dashboard/analysis/components/TrendLine.vue b/src/views/dashboard/analysis/components/TrendLine.vue index 02c71a2f..583b7f7c 100644 --- a/src/views/dashboard/analysis/components/TrendLine.vue +++ b/src/views/dashboard/analysis/components/TrendLine.vue @@ -18,7 +18,6 @@ tooltip: { trigger: 'axis', padding: 3, - backgroundColor: 'rgba(0, 0, 0, .6)', borderColor: '#777', borderWidth: 1, }, -- GitLab