@ledvance/base 1.3.12 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/common.ts +1 -1
package/package.json
CHANGED
package/src/utils/common.ts
CHANGED
|
@@ -97,7 +97,7 @@ if (Platform.OS === 'ios') {
|
|
|
97
97
|
|
|
98
98
|
// 德国数字格式化
|
|
99
99
|
export const localeNumber = (v: number | string, fixed?: number, showGroup?: boolean) => {
|
|
100
|
-
const mFixed = fixed
|
|
100
|
+
const mFixed = fixed ?? 2
|
|
101
101
|
const n = isNaN(Number(v)) ? 0 : Number(v)
|
|
102
102
|
try {
|
|
103
103
|
if (Platform.OS === 'android') return formatNumber(n, mFixed, showGroup)
|