File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const icon = computed(() => (props.pin ? 'mdi-pin-off' : 'mdi-pin'));
17
17
<ButtonIcon
18
18
:tooltip-content =" pin ? $t('icon.pin') : $t('icon.unpin')"
19
19
tooltip-placement =" bottom-start"
20
- trigger-parent
20
+ :z-index = " 100 "
21
21
>
22
22
<SvgIcon :icon =" icon" />
23
23
</ButtonIcon >
Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ interface Props {
17
17
tooltipContent? : string ;
18
18
/** Tooltip placement */
19
19
tooltipPlacement? : PopoverPlacement ;
20
+ zIndex? : number ;
20
21
}
21
22
22
23
const props = withDefaults (defineProps <Props >(), {
23
24
class: ' h-36px text-icon' ,
24
25
icon: ' ' ,
25
26
tooltipContent: ' ' ,
26
- tooltipPlacement: ' bottom'
27
+ tooltipPlacement: ' bottom' ,
28
+ zIndex: 98
27
29
});
28
30
29
31
interface ButtonProps {
@@ -58,7 +60,7 @@ const cls = computed(() => {
58
60
</DefineButton >
59
61
<!-- define component end: Button -->
60
62
61
- <NTooltip v-if =" tooltipContent" :placement =" tooltipPlacement" :z-index =" 98 " >
63
+ <NTooltip v-if =" tooltipContent" :placement =" tooltipPlacement" :z-index =" zIndex " >
62
64
<template #trigger >
63
65
<Button :class-name =" cls" v-bind =" $attrs" >
64
66
<slot >
You can’t perform that action at this time.
0 commit comments