初始化
This commit is contained in:
7
src/utils/formatter.ts
Normal file
7
src/utils/formatter.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { floatToFixed2 } from '@/utils'
|
||||
|
||||
// 格式化金额【分转元】
|
||||
// @ts-ignore
|
||||
export const fenToYuanFormat = (_, __, cellValue: any, ___) => {
|
||||
return `¥${floatToFixed2(cellValue)}`
|
||||
}
|
||||
Reference in New Issue
Block a user