优化"最近入库"数量显示

This commit is contained in:
Dean
2024-07-05 15:19:50 +08:00
parent 0e8da35b0a
commit 5e5545fe01

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()
}
},
},
},
}