@pmun/utils / FormatCurrencyOptions
Interface: FormatCurrencyOptions
货币格式化选项
Properties
currency?
ts
optional currency: string;货币代码(如 'CNY', 'USD')
Default Value
ts
'CNY'locale?
ts
optional locale: string;地区设置(如 'zh-CN', 'en-US')
Default Value
ts
'zh-CN'maximumFractionDigits?
ts
optional maximumFractionDigits: number;最大小数位数;省略时默认 2,若指定的最小小数位数更大,则随之提高
Default Value
ts
2minimumFractionDigits?
ts
optional minimumFractionDigits: number;最小小数位数;省略时默认 2,若指定的最大小数位数更小,则随之降低
Default Value
ts
2showSymbol?
ts
optional showSymbol: boolean;是否显示货币符号
Default Value
ts
true