@tagplus/components 2.1.4 → 2.1.10
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 +2 -13
- package/src/components/Multisuggest/Multisuggest.vue +4 -1
package/package.json
CHANGED
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
@keydown.native.enter.prevent="selectOption"
|
|
40
40
|
@keydown.native.esc.stop.prevent="visible = false"
|
|
41
41
|
@keydown.native.tab="visible = false"
|
|
42
|
-
@change="handleChange"
|
|
43
42
|
@paste.native="debouncedOnInputChange"
|
|
44
43
|
@mouseenter.native="inputHovering = true"
|
|
45
44
|
@mouseleave.native="inputHovering = false"
|
|
@@ -427,16 +426,6 @@ export default {
|
|
|
427
426
|
},
|
|
428
427
|
|
|
429
428
|
methods: {
|
|
430
|
-
handleChange () {
|
|
431
|
-
if (!this.visible) {
|
|
432
|
-
this.toggleMenu()
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
|
|
436
|
-
handleFocus (event) {
|
|
437
|
-
this.focused = true
|
|
438
|
-
this.$emit('focus', event)
|
|
439
|
-
},
|
|
440
429
|
/**
|
|
441
430
|
* Adiciona um evento no elemento dinamicamente
|
|
442
431
|
* @args el {Object} Elemento que tem o listener
|
|
@@ -532,7 +521,7 @@ export default {
|
|
|
532
521
|
const cachedOption = this.cachedOptions[i]
|
|
533
522
|
const isEqual = isObject
|
|
534
523
|
? getValueByPath(cachedOption.value, this.valueKey) ===
|
|
535
|
-
|
|
524
|
+
getValueByPath(value, this.valueKey)
|
|
536
525
|
: cachedOption.value === value
|
|
537
526
|
|
|
538
527
|
if (isEqual) {
|
|
@@ -687,7 +676,7 @@ export default {
|
|
|
687
676
|
</script>
|
|
688
677
|
|
|
689
678
|
<style lang="scss" scoped>
|
|
690
|
-
:deep()
|
|
679
|
+
:deep(){
|
|
691
680
|
.el-input-group__append {
|
|
692
681
|
padding: 0px 6px 0px 0px;
|
|
693
682
|
border: 0;
|
|
@@ -522,7 +522,10 @@ export default {
|
|
|
522
522
|
if (Array.isArray(this.value)) {
|
|
523
523
|
this.value.forEach((item, key) => {
|
|
524
524
|
this.suggestionsList.forEach(suggestion => {
|
|
525
|
-
|
|
525
|
+
const formatItem = parseInt(item) ? parseInt(item) : item
|
|
526
|
+
const formatSuggestion = parseInt(suggestion[this.valueKey]) ? parseInt(suggestion[this.valueKey]) : suggestion[this.valueKey]
|
|
527
|
+
|
|
528
|
+
if (formatSuggestion === formatItem) {
|
|
526
529
|
this.selectedLabelsArray.push(suggestion)
|
|
527
530
|
}
|
|
528
531
|
})
|