@eturnity/eturnity_reusable_components 1.0.32 → 1.0.33
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/package.json
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
:key="child.value"
|
|
17
17
|
@click.stop="
|
|
18
18
|
onSelect({
|
|
19
|
-
|
|
19
|
+
item: child,
|
|
20
20
|
hasChildren: hasChildren(child),
|
|
21
21
|
})
|
|
22
22
|
"
|
|
23
23
|
@keyup.enter.stop="
|
|
24
24
|
onSelect({
|
|
25
|
-
|
|
25
|
+
item: child,
|
|
26
26
|
hasChildren: hasChildren(child),
|
|
27
27
|
})
|
|
28
28
|
"
|
|
@@ -35,11 +35,9 @@
|
|
|
35
35
|
v-for="(item, index) in options"
|
|
36
36
|
:key="item.value"
|
|
37
37
|
tabindex="0"
|
|
38
|
-
@click="
|
|
39
|
-
onSelect({ value: item.value, hasChildren: hasChildren(item) })
|
|
40
|
-
"
|
|
38
|
+
@click="onSelect({ item: item, hasChildren: hasChildren(item) })"
|
|
41
39
|
@keyup.enter="
|
|
42
|
-
onSelect({
|
|
40
|
+
onSelect({ item: item, hasChildren: hasChildren(item) })
|
|
43
41
|
"
|
|
44
42
|
@mouseover="onItemHover({ index, item })"
|
|
45
43
|
>
|
|
@@ -263,11 +261,11 @@ export default {
|
|
|
263
261
|
this.childOpen =
|
|
264
262
|
item.children && item.children.length ? item.children : null
|
|
265
263
|
},
|
|
266
|
-
onSelect({
|
|
264
|
+
onSelect({ item, hasChildren }) {
|
|
267
265
|
if (hasChildren) {
|
|
268
266
|
return
|
|
269
267
|
}
|
|
270
|
-
this.$emit("on-select",
|
|
268
|
+
this.$emit("on-select", item)
|
|
271
269
|
this.isOpen = false
|
|
272
270
|
},
|
|
273
271
|
clickOutside(event) {
|