feat: formatFraction ==> formatAmount2

This commit is contained in:
xingyu4j
2025-06-08 18:22:55 +08:00
parent 5fb652f2b3
commit a8f7b925ca
8 changed files with 14 additions and 15 deletions

View File

@@ -326,8 +326,7 @@ setupVbenVxeTable({
},
});
// TODO @xingyu这个要不叫 formatAmount2 这种?虽然不直观,但是容易看出来是金额;
vxeUI.formats.add('formatFraction', {
vxeUI.formats.add('formatAmount2', {
tableCellFormatMethod({ cellValue }) {
if (cellValue === null || cellValue === undefined) {
return '0.00';