leisure-core 0.5.75 → 0.5.76

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.
@@ -316,7 +316,12 @@ export default {
316
316
  case "currency":
317
317
  if (value == null || value === "") return "";
318
318
  const num = parseFloat(value);
319
- return isNaN(num) ? value : `$${num.toFixed(2)}`;
319
+ if (isNaN(num)) return value;
320
+
321
+ return new Intl.NumberFormat("zh-CN", {
322
+ style: "currency",
323
+ currency: "CNY",
324
+ }).format(num);
320
325
 
321
326
  default:
322
327
  return value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.5.75",
3
+ "version": "0.5.76",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",
@@ -23,4 +23,4 @@
23
23
  "vxe-table": "^3.7.13"
24
24
  },
25
25
  "devDependencies": {}
26
- }
26
+ }