@tagplus/components 0.2.100 → 0.2.103

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
@@ -7,7 +7,7 @@
7
7
  "email": "bruno@tagplus.com.br"
8
8
  }
9
9
  ],
10
- "version": "0.2.100",
10
+ "version": "0.2.103",
11
11
  "main": "./dist/tp.common.js",
12
12
  "directories": {
13
13
  "lib": "src/lib"
@@ -457,14 +457,19 @@ export default {
457
457
  }
458
458
  })
459
459
 
460
- this.value.forEach((item,key) => {
461
- if (item[this.valueKey]) {
462
- this.value[key] = item[this.valueKey]
463
- if(item[this.labelKey]) {
464
- this.selectedLabelsArray.push(item)
460
+ if(Array.isArray(this.value)){
461
+ this.value.forEach((item,key) => {
462
+ if (item[this.valueKey]) {
463
+ this.value[key] = item[this.valueKey]
464
+ if(item[this.labelKey]) {
465
+ this.selectedLabelsArray.push(item)
466
+ }
465
467
  }
466
- }
467
- })
468
+ })
469
+ }else if(process.env.DEBUG === 'true'){
470
+ console.log(`'${this.$options.name}' recebeu valor em formato inválido.`)
471
+ console.log(this.value)
472
+ }
468
473
 
469
474
  this.selectedLabels = this.selectedLabelsArray
470
475
  .map(item => {
@@ -761,9 +766,9 @@ input.el-input__inner {
761
766
  }
762
767
 
763
768
  &.selected {
764
- color: #2D6EDA;
769
+ color: #2d6eda;
765
770
  padding-left: 30px;
766
- background-color: #F0F3F9;
771
+ background-color: #f0f3f9;
767
772
  border-radius: 5px;
768
773
  font-weight: none;
769
774