@tagplus/components 4.9.1 → 4.10.0
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 +3 -3
- 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 +14 -6
package/package.json
CHANGED
|
@@ -10,9 +10,12 @@
|
|
|
10
10
|
placement="top"
|
|
11
11
|
:manual="true"
|
|
12
12
|
:value="tooltipVisible"
|
|
13
|
-
:content="selectedLabel + ''"
|
|
14
13
|
:tabindex="-1"
|
|
15
14
|
>
|
|
15
|
+
<template #content>
|
|
16
|
+
<div v-html="tooltipContent || selectedLabel" />
|
|
17
|
+
</template>
|
|
18
|
+
|
|
16
19
|
<!-- Div é importante para funcionar o tooltip -->
|
|
17
20
|
<div />
|
|
18
21
|
</el-tooltip>
|
|
@@ -274,6 +277,12 @@ export default {
|
|
|
274
277
|
type: String,
|
|
275
278
|
required: false,
|
|
276
279
|
default: 'Cadastrar novo item'
|
|
280
|
+
},
|
|
281
|
+
|
|
282
|
+
tooltipContent: {
|
|
283
|
+
type: String,
|
|
284
|
+
required: false,
|
|
285
|
+
default: ''
|
|
277
286
|
}
|
|
278
287
|
},
|
|
279
288
|
|
|
@@ -485,6 +494,8 @@ export default {
|
|
|
485
494
|
getOption (val) {
|
|
486
495
|
let value = ''
|
|
487
496
|
let initialLabel = false
|
|
497
|
+
this.modifiedLabel = false
|
|
498
|
+
|
|
488
499
|
if (typeof this.value === 'boolean') {
|
|
489
500
|
value = ''
|
|
490
501
|
} else if (Array.isArray(val)) {
|
|
@@ -538,12 +549,10 @@ export default {
|
|
|
538
549
|
|
|
539
550
|
if (option) return option
|
|
540
551
|
|
|
541
|
-
const
|
|
542
|
-
const label = value
|
|
543
|
-
|
|
552
|
+
const label = !isObject && !isNull && !isUndefined ? value : ''
|
|
544
553
|
const newOption = {
|
|
545
554
|
value,
|
|
546
|
-
currentLabel:
|
|
555
|
+
currentLabel: this.modifiedLabel || label
|
|
547
556
|
}
|
|
548
557
|
|
|
549
558
|
if (this.multiple) {
|
|
@@ -697,7 +706,6 @@ export default {
|
|
|
697
706
|
}
|
|
698
707
|
}
|
|
699
708
|
}
|
|
700
|
-
|
|
701
709
|
input.el-input__inner {
|
|
702
710
|
margin-right: 0px;
|
|
703
711
|
}
|