收敛前端金额表单命名
This commit is contained in:
@@ -48,13 +48,6 @@ export function centToDisplayYuan(cent: number | undefined | null): number {
|
||||
return roundMoney(centToYuan(cent))
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 使用 centToDisplayYuan。保留导出避免旧导入立刻失效。
|
||||
*/
|
||||
export function centToJiao(cent: number | undefined | null): number {
|
||||
return centToDisplayYuan(cent)
|
||||
}
|
||||
|
||||
/**
|
||||
* 格式化分为角字符串(保留1位小数)
|
||||
* @example formatCent(12345) -> "123.5"
|
||||
|
||||
Reference in New Issue
Block a user