@tagplus/components 2.0.0 → 2.0.2

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
@@ -8,7 +8,7 @@
8
8
  "email": "bruno@tagplus.com.br"
9
9
  }
10
10
  ],
11
- "version": "2.0.0",
11
+ "version": "2.0.2",
12
12
  "main": "./dist/tp.common.js",
13
13
  "directories": {
14
14
  "lib": "src/lib"
@@ -51,11 +51,11 @@
51
51
  "axios": "^0.27.2",
52
52
  "core-js": "^3.25.0",
53
53
  "element-theme-chalk": "^2.13",
54
- "element-ui": "2.15.9",
54
+ "element-ui": "2.15.8",
55
55
  "js-cookie": "^3.0.1",
56
56
  "vue": "^2.7.10",
57
57
  "vue-axios": "^2.1.5",
58
- "vue-i18n": "^8.14.0"
58
+ "vue-i18n": "^8.15.3"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@babel/core": "^7.18.13",
@@ -114,8 +114,8 @@ export default {
114
114
  default: false
115
115
  },
116
116
  label: {
117
- type: [String, Boolean],
118
- default: false
117
+ type: [String],
118
+ default: ''
119
119
  },
120
120
  placeholder: {
121
121
  type: [String, Boolean],
@@ -347,9 +347,17 @@ export default {
347
347
  this.setCurrentValue(newVal)
348
348
  },
349
349
  handleBlur (event) {
350
+ if (!this.value && this.stringDefaultsZero && !this.precision) {
351
+ this.currentValue = 0
352
+ }
353
+
350
354
  this.$emit('blur', event)
351
355
  },
352
356
  handleFocus (event) {
357
+ if (!this.value && !this.precision) {
358
+ this.currentValue = ''
359
+ }
360
+
353
361
  this.$emit('focus', event)
354
362
  },
355
363