@dataloop-ai/components 0.19.252 → 0.19.253
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
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
:anchor="menuAnchor"
|
|
80
80
|
:self="menuSelf"
|
|
81
81
|
:offset="menuOffset"
|
|
82
|
+
:z-index="zIndex"
|
|
82
83
|
separate-close-popup
|
|
83
84
|
:disabled="disabled"
|
|
84
85
|
:max-height="maxHeight"
|
|
@@ -140,6 +141,7 @@
|
|
|
140
141
|
:anchor="menuAnchor"
|
|
141
142
|
:self="menuSelf"
|
|
142
143
|
:offset="menuOffset"
|
|
144
|
+
:z-index="zIndex"
|
|
143
145
|
separate-close-popup
|
|
144
146
|
:disabled="disabled"
|
|
145
147
|
:max-height="maxHeight"
|
|
@@ -247,6 +249,10 @@ export default defineComponent({
|
|
|
247
249
|
type: String,
|
|
248
250
|
required: false,
|
|
249
251
|
default: null
|
|
252
|
+
},
|
|
253
|
+
zIndex: {
|
|
254
|
+
type: [String, Number],
|
|
255
|
+
default: null
|
|
250
256
|
}
|
|
251
257
|
},
|
|
252
258
|
emits: [
|
|
@@ -481,6 +481,20 @@ export default defineComponent({
|
|
|
481
481
|
emit('highlighted-item', value, arrowNavItems.value[value] ?? null)
|
|
482
482
|
})
|
|
483
483
|
|
|
484
|
+
const { zIndex, height, width } = toRefs(props)
|
|
485
|
+
|
|
486
|
+
const computedStyles = computed<any>(() => {
|
|
487
|
+
return [
|
|
488
|
+
attrs.style,
|
|
489
|
+
transitionStyle.value,
|
|
490
|
+
{
|
|
491
|
+
'--menu-z-index': zIndex.value ?? 'var(--dl-z-index-menu)',
|
|
492
|
+
'--menu-height': height.value,
|
|
493
|
+
'--menu-width': width.value
|
|
494
|
+
}
|
|
495
|
+
]
|
|
496
|
+
})
|
|
497
|
+
|
|
484
498
|
return {
|
|
485
499
|
uuid: `dl-menu-${v4()}`,
|
|
486
500
|
onClick,
|
|
@@ -491,15 +505,7 @@ export default defineComponent({
|
|
|
491
505
|
portalEl: isVue2 ? '[data-test-id="portal"]' : portalEl,
|
|
492
506
|
portalIsActive,
|
|
493
507
|
classes: 'dl-menu dl-position-engine scroll' + classes.value,
|
|
494
|
-
styles:
|
|
495
|
-
attrs.style,
|
|
496
|
-
transitionStyle.value,
|
|
497
|
-
{
|
|
498
|
-
'--menu-z-index': props.zIndex ?? 'var(--dl-z-index-menu)',
|
|
499
|
-
'--menu-height': props.height,
|
|
500
|
-
'--menu-width': props.width
|
|
501
|
-
}
|
|
502
|
-
] as any,
|
|
508
|
+
styles: computedStyles,
|
|
503
509
|
selectedItem,
|
|
504
510
|
highlightedIndex
|
|
505
511
|
}
|