@dataloop-ai/components 0.19.251 → 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"
|
|
@@ -242,6 +244,15 @@ export default defineComponent({
|
|
|
242
244
|
arrowNavItems: {
|
|
243
245
|
type: Array as PropType<any[]>,
|
|
244
246
|
default: () => [] as any[]
|
|
247
|
+
},
|
|
248
|
+
contentGap: {
|
|
249
|
+
type: String,
|
|
250
|
+
required: false,
|
|
251
|
+
default: null
|
|
252
|
+
},
|
|
253
|
+
zIndex: {
|
|
254
|
+
type: [String, Number],
|
|
255
|
+
default: null
|
|
245
256
|
}
|
|
246
257
|
},
|
|
247
258
|
emits: [
|
|
@@ -309,7 +320,10 @@ export default defineComponent({
|
|
|
309
320
|
return {
|
|
310
321
|
'--justify-content': props.fluid
|
|
311
322
|
? 'space-between'
|
|
312
|
-
: 'space-around'
|
|
323
|
+
: 'space-around',
|
|
324
|
+
...(props.contentGap && {
|
|
325
|
+
'--dl-button-content-gap': props.contentGap
|
|
326
|
+
})
|
|
313
327
|
}
|
|
314
328
|
})
|
|
315
329
|
|
|
@@ -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
|
}
|