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'));
1717 <ButtonIcon
1818 :tooltip-content =" pin ? $t('icon.pin') : $t('icon.unpin')"
1919 tooltip-placement =" bottom-start"
20- trigger-parent
20+ :z-index = " 100 "
2121 >
2222 <SvgIcon :icon =" icon" />
2323 </ButtonIcon >
Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ interface Props {
1717 tooltipContent? : string ;
1818 /** Tooltip placement */
1919 tooltipPlacement? : PopoverPlacement ;
20+ zIndex? : number ;
2021}
2122
2223const props = withDefaults (defineProps <Props >(), {
2324 class: ' h-36px text-icon' ,
2425 icon: ' ' ,
2526 tooltipContent: ' ' ,
26- tooltipPlacement: ' bottom'
27+ tooltipPlacement: ' bottom' ,
28+ zIndex: 98
2729});
2830
2931interface ButtonProps {
@@ -58,7 +60,7 @@ const cls = computed(() => {
5860 </DefineButton >
5961 <!-- define component end: Button -->
6062
61- <NTooltip v-if =" tooltipContent" :placement =" tooltipPlacement" :z-index =" 98 " >
63+ <NTooltip v-if =" tooltipContent" :placement =" tooltipPlacement" :z-index =" zIndex " >
6264 <template #trigger >
6365 <Button :class-name =" cls" v-bind =" $attrs" >
6466 <slot >
You can’t perform that action at this time.
0 commit comments