Merge branch 'master' into fix-commission-rate-rounding

This commit is contained in:
ping 2024-01-30 14:37:22 +08:00 committed by GitHub
commit db2d963d06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,7 +91,7 @@ const chartConfig = computed(() => {
offsetY: -15, offsetY: -15,
fontWeight: 500, fontWeight: 500,
fontSize: '2.125rem', fontSize: '2.125rem',
formatter: (value: unknown) => `${rate.value.toFixed(0)}%`, formatter: (value: unknown) => `${rate.value.toFixed(1)}%`,
color: primaryText, color: primaryText,
}, },
total: { total: {
@ -99,7 +99,7 @@ const chartConfig = computed(() => {
label: 'Commission Rate', label: 'Commission Rate',
fontSize: '1rem', fontSize: '1rem',
color: secondaryText, color: secondaryText,
formatter: () => `${rate.value.toFixed(0)}%`, formatter: () => `${rate.value.toFixed(1)}%`,
}, },
}, },
}, },