From 7f7d1403db30aa5ea6ebfb96eadc824ee90bf896 Mon Sep 17 00:00:00 2001 From: Aresn Date: Fri, 7 Jun 2024 11:51:53 +0800 Subject: [PATCH] 22 --- components/i/search/ExtraInfo.vue | 2 +- components/prose/Chart.global.vue | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/i/search/ExtraInfo.vue b/components/i/search/ExtraInfo.vue index de3f1c2..df06302 100644 --- a/components/i/search/ExtraInfo.vue +++ b/components/i/search/ExtraInfo.vue @@ -26,7 +26,7 @@ :info="chart.info" simple /> -
{{ item.title }}
+
{{ item.title }}
diff --git a/components/prose/Chart.global.vue b/components/prose/Chart.global.vue index bfaaac5..b18bd6a 100644 --- a/components/prose/Chart.global.vue +++ b/components/prose/Chart.global.vue @@ -43,8 +43,10 @@ function init () { data: { labels: props.labels, datasets: props.data.map(item => { - item.backgroundColor = ['rgba(54, 162, 235, 0.2)', 'rgba(255, 99, 132, 0.2)', 'rgba(255, 159, 64, 0.2)', 'rgba(255, 205, 86, 0.2)', 'rgba(75, 192, 192, 0.2)', 'rgba(153, 102, 255, 0.2)', 'rgba(201, 203, 207, 0.2)'] - item.borderColor = ['rgb(54, 162, 235)', 'rgb(255, 99, 132)', 'rgb(255, 159, 64)', 'rgb(255, 205, 86)', 'rgb(75, 192, 192)', 'rgb(153, 102, 255)', 'rgb(201, 203, 207)'] + // item.backgroundColor = ['rgba(54, 162, 235, 0.2)', 'rgba(255, 99, 132, 0.2)', 'rgba(255, 159, 64, 0.2)', 'rgba(255, 205, 86, 0.2)', 'rgba(75, 192, 192, 0.2)', 'rgba(153, 102, 255, 0.2)', 'rgba(201, 203, 207, 0.2)'] + // item.borderColor = ['rgb(54, 162, 235)', 'rgb(255, 99, 132)', 'rgb(255, 159, 64)', 'rgb(255, 205, 86)', 'rgb(75, 192, 192)', 'rgb(153, 102, 255)', 'rgb(201, 203, 207)'] + item.backgroundColor = ['rgba(54, 162, 235, 0.2)'] + item.borderColor = ['rgb(54, 162, 235)'] item.borderWidth = 1 return item }) -- GitLab