@eturnity/eturnity_reusable_components 7.6.1-EPDM-9777.2 → 7.6.1-EPDM-9777.3
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
@@ -23,17 +23,17 @@
|
|
23
23
|
v-for="child in childOpen"
|
24
24
|
:key="child.value"
|
25
25
|
@click.stop="
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
onSelect({
|
27
|
+
item: child,
|
28
|
+
hasChildren: hasChildren(child)
|
29
|
+
})
|
30
|
+
"
|
31
31
|
@keyup.enter.stop="
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
32
|
+
onSelect({
|
33
|
+
item: child,
|
34
|
+
hasChildren: hasChildren(child)
|
35
|
+
})
|
36
|
+
"
|
37
37
|
>
|
38
38
|
{{ child.name }}
|
39
39
|
</option-child>
|
@@ -45,8 +45,8 @@
|
|
45
45
|
tabindex="0"
|
46
46
|
@click.stop="onSelect({ item: item, hasChildren: hasChildren(item) })"
|
47
47
|
@keyup.enter="
|
48
|
-
|
49
|
-
|
48
|
+
onSelect({ item: item, hasChildren: hasChildren(item) })
|
49
|
+
"
|
50
50
|
@mouseover="onItemHover({ index, item })"
|
51
51
|
:isDisabled="item.disabled"
|
52
52
|
>
|
@@ -68,9 +68,10 @@
|
|
68
68
|
// import ThreeDots from "@eturnity/eturnity_reusable_components/src/components/threeDots"
|
69
69
|
// To use:
|
70
70
|
// <three-dots
|
71
|
+
// :isLoading="true"
|
71
72
|
// :options="listOptions"
|
73
|
+
// @on-click="onClick($event)"
|
72
74
|
// @on-select="onSelect($event)"
|
73
|
-
// :isLoading="true"
|
74
75
|
// />
|
75
76
|
// options to pass:
|
76
77
|
// listOptions: [
|
@@ -203,6 +204,8 @@ const OptionItem = styled('div', optionAttrs)`
|
|
203
204
|
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'pointer')};
|
204
205
|
font-size: 13px;
|
205
206
|
position: relative;
|
207
|
+
${(props) => (props.isDisabled ? `background-color: ${ props.theme.colors.grey5 }!important` : '')};
|
208
|
+
${(props) => (props.isDisabled ? `color: ${ props.theme.colors.grey2 }` : '')};
|
206
209
|
|
207
210
|
&:hover {
|
208
211
|
background-color: #ebeef4;
|
@@ -368,6 +371,9 @@ export default {
|
|
368
371
|
},
|
369
372
|
onSelect({ item, hasChildren }) {
|
370
373
|
if (hasChildren || item.disabled) {
|
374
|
+
if (item.disabled) {
|
375
|
+
this.$emit('on-click', item)
|
376
|
+
}
|
371
377
|
return
|
372
378
|
}
|
373
379
|
this.$emit('on-select', item)
|