sync main

This commit is contained in:
jxxghp
2024-08-19 12:26:10 +08:00
parent fc61f3fca1
commit 9d55f8ab24
5 changed files with 57 additions and 30 deletions

View File

@@ -80,7 +80,13 @@ const options = controlledComputed(
fontSize: '12px',
},
formatter: (value: number) => (value > 999 ? (value / 1000).toFixed(0) : value),
formatter: (value: number) => {
if (value > 999) {
return (value / 1000).toFixed(1) + 'k'
} else {
return value.toString()
}
},
},
},
}