src/utils/util.ts
@@ -706,7 +706,9 @@ */ export const toMyFixed = (num, precision) => { if (num == null) return ''; return num.toFixed(precision).replace(/\.?0+$/, ''); if (!precision) return num + ''; const factor = Math.pow(10, precision); return Math.round(Number(num) * factor) / factor + ''; }; type GetTextWidthOption = {