@tagplus/components 0.2.95 → 0.2.96
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/dist/tp.common.js +32 -30
- package/dist/tp.common.js.map +1 -1
- package/dist/tp.css +1 -1
- package/dist/tp.umd.js +32 -30
- package/dist/tp.umd.js.map +1 -1
- package/dist/tp.umd.min.js +1 -1
- package/dist/tp.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Multisuggest/Multisuggest.vue +4 -2
package/package.json
CHANGED
|
@@ -459,8 +459,10 @@ export default {
|
|
|
459
459
|
|
|
460
460
|
this.value.forEach((item,key) => {
|
|
461
461
|
if (item[this.valueKey]) {
|
|
462
|
-
this.selectedLabelsArray.push(item)
|
|
463
462
|
this.value[key] = item[this.valueKey]
|
|
463
|
+
if(item[this.labelKey]) {
|
|
464
|
+
this.selectedLabelsArray.push(item)
|
|
465
|
+
}
|
|
464
466
|
}
|
|
465
467
|
})
|
|
466
468
|
|
|
@@ -523,7 +525,7 @@ export default {
|
|
|
523
525
|
else if (val && typeof val === 'object') {
|
|
524
526
|
// Se val for Object converte para outro tipo
|
|
525
527
|
if (!val[this.valueKey]) {
|
|
526
|
-
throw new TypeError('
|
|
528
|
+
throw new TypeError('Multisuggest option doesn\'t have a valueKey \'' + this.valueKey + '\' key')
|
|
527
529
|
} else {
|
|
528
530
|
// Se mandou a label no objeto value
|
|
529
531
|
if (val[this.labelKey]) {
|