easybill-ui 1.0.2 → 1.0.3

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.
@@ -321,7 +321,10 @@ const onMenuOption = (optionKey: MenuEventKey, val: string) => {
321
321
  return curs.join(",")
322
322
  }
323
323
  if (schema.formatter) {
324
- const result = schema.formatter(row, schema, val, i) as string
324
+ let result = schema.formatter(row, schema, val, i) as string
325
+ if (/^[0-9\.,+-]+.[0-9]{2}$/.test(String(result))) {
326
+ result = +parseFloat(String(result).replace(/,|$|¥/g, ""))
327
+ }
325
328
  return result === "--" ? "" : result
326
329
  }
327
330
  return val
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easybill-ui",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A component library for easybill",
5
5
  "author": "tuchongyang <779311998@qq.com>",
6
6
  "private": false,
@@ -14,5 +14,5 @@
14
14
  "publishConfig": {
15
15
  "access": "public"
16
16
  },
17
- "gitHead": "6dc20c198be9f3d1c7fde6c788e141eca4146c17"
17
+ "gitHead": "874ba19aa5d115d7131f25208b3c5c10e6790484"
18
18
  }