zhl-methods 1.1.10 → 1.1.11

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/VERSION.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  版本更新日志
4
4
 
5
- ### 1.1.9
5
+ ### 1.1.11
6
6
 
7
7
  - numberToPrice 方法 增加支持 字符串
8
8
 
package/js/index.js CHANGED
@@ -52,7 +52,7 @@ export const toUrlQuery = (query) => {
52
52
  */
53
53
  export const numberToPrice = (number) => {
54
54
  try {
55
- return number.toLocaleString("zh", {
55
+ return Number(number).toLocaleString("zh", {
56
56
  minimumFractionDigits: 2,
57
57
  maximumFractionDigits: 2,
58
58
  style: "decimal",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zhl-methods",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "license": "ISC",
5
5
  "dependencies": {
6
6
  "dayjs": "^1.11.15",