fix: vxe Amount

pull/142/MERGE
xingyu4j 2025-06-14 20:35:13 +08:00
parent 122b835fb7
commit 0eb81bd332
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import {
useVbenVxeGrid,
} from '@vben/plugins/vxe-table';
import {
floatToFixed2,
erpNumberFormatter,
formatToFractionDigit,
isFunction,
isString,
@ -333,8 +333,8 @@ setupVbenVxeTable({
});
vxeUI.formats.add('formatAmount2', {
tableCellFormatMethod({ cellValue }) {
return `${floatToFixed2(cellValue)}`;
tableCellFormatMethod({ cellValue }, digits = 2) {
return `${erpNumberFormatter(cellValue, digits)}`;
},
});
},