@solar-taro/core 1.1.12 → 1.1.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/CHANGELOG.md +10 -0
- package/package.json +1 -1
- package/pipes/amount.js +1 -1
- package/pipes/amount.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 1.1.12 (2025-07-21)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **pipes:** move amount and date into pipes
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- HyperLife1119
|
|
10
|
+
|
|
1
11
|
## 1.1.11 (2025-07-18)
|
|
2
12
|
|
|
3
13
|
This was a version bump only for core to align it with other projects, there were no code changes.
|
package/package.json
CHANGED
package/pipes/amount.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @param accurate 精准模式,启用后会附加小数点
|
|
6
6
|
*/
|
|
7
7
|
export const amount = (value, accurate = true) => {
|
|
8
|
-
const [integer, decimal] = Math.abs(value).toFixed(2).split('.');
|
|
8
|
+
const [integer, decimal] = Math.abs(value || 0).toFixed(2).split('.');
|
|
9
9
|
let str = integer
|
|
10
10
|
.split('')
|
|
11
11
|
.reverse()
|
package/pipes/amount.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amount.js","sourceRoot":"","sources":["../../../../packages/core/src/pipes/amount.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAa,EAAE,QAAQ,GAAG,IAAI,EAAE,EAAE;IACvD,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"amount.js","sourceRoot":"","sources":["../../../../packages/core/src/pipes/amount.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAa,EAAE,QAAQ,GAAG,IAAI,EAAE,EAAE;IACvD,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEtE,IAAI,GAAG,GAAG,OAAO;SACd,KAAK,CAAC,EAAE,CAAC;SACT,OAAO,EAAE;SACT,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACnB,IAAI,GAAG,CAAC,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,aAAa;KAC/D;SACA,OAAO,EAAE;SACT,IAAI,CAAC,EAAE,CAAC,CAAC;IAEZ,IAAI,QAAQ,EAAE,CAAC;QACb,GAAG,IAAI,IAAI,OAAO,EAAE,CAAC;IACvB,CAAC;IAED,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;QACd,GAAG,GAAG,IAAI,GAAG,EAAE,CAAA;IACjB,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
|