@tagplus/components 4.9.1 → 4.9.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/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 +4 -4
package/package.json
CHANGED
|
@@ -485,6 +485,8 @@ export default {
|
|
|
485
485
|
getOption (val) {
|
|
486
486
|
let value = ''
|
|
487
487
|
let initialLabel = false
|
|
488
|
+
this.modifiedLabel = false
|
|
489
|
+
|
|
488
490
|
if (typeof this.value === 'boolean') {
|
|
489
491
|
value = ''
|
|
490
492
|
} else if (Array.isArray(val)) {
|
|
@@ -538,12 +540,10 @@ export default {
|
|
|
538
540
|
|
|
539
541
|
if (option) return option
|
|
540
542
|
|
|
541
|
-
const
|
|
542
|
-
const label = value
|
|
543
|
-
|
|
543
|
+
const label = !isObject && !isNull && !isUndefined ? value : ''
|
|
544
544
|
const newOption = {
|
|
545
545
|
value,
|
|
546
|
-
currentLabel:
|
|
546
|
+
currentLabel: this.modifiedLabel || label
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
if (this.multiple) {
|