@@ -421,6 +421,12 @@ function setTooltipRight() {
421
421
}
422
422
}
423
423
424
+ const leftLabelZIndex = ref (0 );
425
+
426
+ function setLeftLabelZIndex (handle ) {
427
+ leftLabelZIndex .value = handle === ' start' ? 1 : 0
428
+ }
429
+
424
430
onUpdated (() => {
425
431
setTooltipLeft ();
426
432
setTooltipRight ();
@@ -629,6 +635,7 @@ defineExpose({
629
635
:max =" max"
630
636
v-model =" startValue"
631
637
@input =" onStartInput"
638
+ @mouseenter =" setLeftLabelZIndex('start')"
632
639
/>
633
640
634
641
<input
@@ -641,6 +648,7 @@ defineExpose({
641
648
:max =" max"
642
649
v-model =" endValue"
643
650
@input =" onEndInput"
651
+ @mouseenter =" setLeftLabelZIndex('end')"
644
652
/>
645
653
646
654
<div
@@ -657,7 +665,8 @@ defineExpose({
657
665
left: highlightStyle.tooltipLeft,
658
666
color: adaptColorToBackground(selectColor),
659
667
backgroundColor: selectColor,
660
- border: `1px solid ${borderColor}`
668
+ border: `1px solid ${borderColor}`,
669
+ zIndex: `${leftLabelZIndex + 4}`
661
670
}"
662
671
>
663
672
{{ labelLeft }}
@@ -677,7 +686,8 @@ defineExpose({
677
686
left: highlightStyle.tooltipRight,
678
687
color: adaptColorToBackground(selectColor),
679
688
backgroundColor: selectColor,
680
- border: `1px solid ${borderColor}`
689
+ border: `1px solid ${borderColor}`,
690
+ zIndex: '4'
681
691
}"
682
692
>
683
693
{{ labelRight }}
@@ -869,7 +879,6 @@ input[type="range"]::-ms-thumb {
869
879
}
870
880
871
881
.range-tooltip {
872
- z-index : 4 ;
873
882
padding : 2px 4px ;
874
883
font-size : 10px ;
875
884
border-radius : 3px ;
0 commit comments