@veritree/ui 0.84.2 → 0.84.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.84.2",
3
+ "version": "0.84.3",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -42,7 +42,7 @@ export default {
42
42
  // different type of number input (e.g. 'integer', 'decimal', 'currency')
43
43
  format: {
44
44
  type: String,
45
- default: 'integer',
45
+ default: 'decimal',
46
46
  },
47
47
  locale: {
48
48
  type: String,
@@ -149,7 +149,7 @@ export default {
149
149
  return null; // or any other appropriate value or behavior
150
150
  }
151
151
 
152
- if (this.format === 'currency') {
152
+ if (this.format === 'currency' || this.format === 'decimal') {
153
153
  return parseFloat(number.replace(/,/g, ''));
154
154
  }
155
155