@tagplus/components 4.7.13 → 4.7.15
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 +1 -1
- package/dist/tp.common.js.map +1 -1
- package/dist/tp.css +1 -1
- package/dist/tp.umd.js +1 -1
- 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/Autosuggest/Autosuggest.vue +7 -2
package/package.json
CHANGED
|
@@ -478,6 +478,11 @@ export default {
|
|
|
478
478
|
}
|
|
479
479
|
},
|
|
480
480
|
|
|
481
|
+
/** Atualiza a label de algum dos elementos da listagem do altosuggest */
|
|
482
|
+
atualizarLabelOpcao (index, val) {
|
|
483
|
+
this.suggestionsList[index][this.labelKey] = val
|
|
484
|
+
},
|
|
485
|
+
|
|
481
486
|
/**
|
|
482
487
|
* Sobrescreve o getOption do select para mostrar o labelValue em vez do idValue
|
|
483
488
|
*/
|
|
@@ -524,8 +529,8 @@ export default {
|
|
|
524
529
|
isEqual = getValueByPath(cachedOption.value, this.valueKey) === getValueByPath(value, this.valueKey)
|
|
525
530
|
} else {
|
|
526
531
|
isEqual = cachedOption.value === value
|
|
527
|
-
if (initialLabel) {
|
|
528
|
-
|
|
532
|
+
if (initialLabel && isEqual) {
|
|
533
|
+
this.atualizarLabelOpcao(i, initialLabel)
|
|
529
534
|
}
|
|
530
535
|
}
|
|
531
536
|
|