@tagplus/components 4.7.12 → 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 +2 -2
- 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/src/components/Tip/Tip.vue +23 -25
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
|
|
|
@@ -5,50 +5,50 @@
|
|
|
5
5
|
type="flex"
|
|
6
6
|
align="middle"
|
|
7
7
|
:class="tptipclasses"
|
|
8
|
+
class="text-black"
|
|
8
9
|
>
|
|
9
|
-
<el-col
|
|
10
|
-
|
|
11
|
-
:lg="3"
|
|
12
|
-
>
|
|
13
|
-
<div style="display: flex; min-width:25px; justify-content: center; margin:15px; padding: auto">
|
|
14
|
-
<em class="far fa-lightbulb-on" />
|
|
15
|
-
</div>
|
|
10
|
+
<el-col :xs="3" :sm="1" style="align-self: start;">
|
|
11
|
+
<em class="far fa-lightbulb-on" />
|
|
16
12
|
</el-col>
|
|
17
13
|
|
|
18
|
-
<el-col
|
|
19
|
-
:sm="24"
|
|
20
|
-
:lg="21"
|
|
21
|
-
>
|
|
14
|
+
<el-col :xs="21" :sm="23">
|
|
22
15
|
<div
|
|
23
16
|
:id="`${_id}-text`"
|
|
24
|
-
style="margin:15px; margin-left:0px"
|
|
25
17
|
v-html="text"
|
|
26
18
|
/>
|
|
27
19
|
</el-col>
|
|
28
20
|
</el-row>
|
|
21
|
+
|
|
29
22
|
<el-row
|
|
30
23
|
v-else
|
|
31
24
|
:id="`${_id}`"
|
|
32
25
|
type="flex"
|
|
33
26
|
align="middle"
|
|
34
|
-
justify="
|
|
35
|
-
:class="tptipclasses"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
justify="center"
|
|
28
|
+
:class="tptipclasses"
|
|
29
|
+
class="text-black"
|
|
30
|
+
>
|
|
31
|
+
|
|
32
|
+
<el-col :xs="3" :sm="1">
|
|
33
|
+
<el-row type="flex" justify="start">
|
|
40
34
|
<em class="far fa-lightbulb-on" />
|
|
41
|
-
<b class="tp-title">{{ title }}</b>
|
|
42
35
|
</el-row>
|
|
43
36
|
</el-col>
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
|
|
38
|
+
<el-col :xs="18" :sm="22">
|
|
39
|
+
<b class="tp-title">{{ title }}</b>
|
|
40
|
+
</el-col>
|
|
41
|
+
|
|
42
|
+
<el-col :xs="3" :sm="1">
|
|
43
|
+
<el-row type="flex" justify="end">
|
|
44
|
+
<em v-if="closed" class="fa fa-plus tp-close-button" @click="closed = !closed" />
|
|
45
|
+
<em v-else class="fa fa-minus tp-close-button" @click="closed = !closed" />
|
|
46
|
+
</el-row>
|
|
46
47
|
</el-col>
|
|
47
48
|
|
|
48
|
-
<el-col :class="'tp-text ' + (closed ? 'tp-vanish' : '' )"
|
|
49
|
+
<el-col :xs="18" :sm="22" :class="'tp-text ' + (closed ? 'tp-vanish' : '' )">
|
|
49
50
|
<div
|
|
50
51
|
:id="`${_id}-text`"
|
|
51
|
-
style="margin:15px; margin-left:0px"
|
|
52
52
|
v-html="text"
|
|
53
53
|
/>
|
|
54
54
|
</el-col>
|
|
@@ -171,13 +171,11 @@ export default {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.tp-close-button {
|
|
174
|
-
padding: 10px;
|
|
175
174
|
cursor: pointer;
|
|
176
175
|
}
|
|
177
176
|
|
|
178
177
|
.tp-title {
|
|
179
178
|
font-size: 16px;
|
|
180
|
-
padding-left: 16px;
|
|
181
179
|
}
|
|
182
180
|
|
|
183
181
|
.tp-text {
|