style: dashboard

This commit is contained in:
jialin
2024-06-26 10:39:03 +08:00
parent 1fc415b6e6
commit d44f5a72d1
16 changed files with 95 additions and 71 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
.cardWrapper {
border-radius: 20px;
border-radius: var(--border-radius-middle);
background-color: var(--color-white-1);
box-shadow: var(--box-shadow-base);
}
+5 -2
View File
@@ -43,7 +43,10 @@ const BarChart: React.FC<BarChartProps> = (props) => {
title: {
title,
style: {
align: 'center'
align: 'center',
titleFontSize: 14,
titleFill: 'rgba(0,0,0,0.88)',
titleFontWeight: 500
}
},
split: {
@@ -62,7 +65,7 @@ const BarChart: React.FC<BarChartProps> = (props) => {
radiusTopLeft: 12,
radiusTopRight: 12,
align: 'center',
width: 30
width: 20
}
};
+4 -2
View File
@@ -47,9 +47,11 @@ const GaugeChart: React.FC<GaugeChartProps> = (props) => {
title: {
title,
size: 0,
titleFontSize: 14,
style: {
align: 'center'
align: 'center',
titleFontSize: 14,
titleFill: 'rgba(0,0,0,0.88)',
titleFontWeight: 500
}
},
style: {
+5 -2
View File
@@ -43,7 +43,10 @@ const BarChart: React.FC<BarChartProps> = (props) => {
title: {
title,
style: {
align: 'center'
align: 'center',
titleFontSize: 14,
titleFill: 'rgba(0,0,0,0.88)',
titleFontWeight: 500
}
},
split: {
@@ -59,7 +62,7 @@ const BarChart: React.FC<BarChartProps> = (props) => {
fill: 'linear-gradient(180deg,rgba(84, 204, 152,0.8) 0%,rgb(0, 168, 143,.7) 100%)',
radiusTopLeft: 12,
radiusTopRight: 12,
height: 30
height: 20
}
};
+4 -3
View File
@@ -39,11 +39,12 @@ const LineChart: React.FC<LineChartProps> = (props) => {
lineWidth: 1.5
},
legend: {
itemMarker: {
symbol: 'circle'
},
color: {
layout: { justifyContent: 'center' }
},
size: {
itemLabelFontSize: 14,
itemLabelFontWeight: 500
}
},
tooltip: {