备注、红绿功能优化

This commit is contained in:
lzm
2026-05-09 11:11:56 +08:00
parent 92c5071fab
commit 1fbf02a310
2 changed files with 163 additions and 25 deletions

View File

@@ -407,10 +407,10 @@ const submitProfitForm = async () => {
const profitLossClass = (value?: number) => {
if ((value || 0) > 0) {
return 'text-[var(--el-color-success)] font-600'
return 'text-[var(--el-color-danger)] font-600'
}
if ((value || 0) < 0) {
return 'text-[var(--el-color-danger)] font-600'
return 'text-[var(--el-color-success)] font-600'
}
return 'text-[var(--el-text-color-primary)]'
}