File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <b-button
3
- v-b-tooltip.body =" { title: tooltipTitle, placement: tooltipPlacement }"
4
- :to =" to"
5
- v-bind =" buttonProps"
6
- class =" icon-button"
7
- :class =" classList"
8
- @mouseenter =" currentHover = true"
9
- @mouseleave =" currentHover = false"
10
- >
2
+ <b-button v-bind =" buttonProps" ref =" iconButton" :to =" to" class =" icon-button" :class =" classList" >
11
3
<slot name =" start" />
12
4
<phosphor-icon
13
5
v-if =" iconLeft || (!iconLeft && !iconRight && loading)"
35
27
class =" icon-button__icon-right"
36
28
/>
37
29
<slot name =" end" />
30
+ <b-tooltip
31
+ v-model =" currentHover"
32
+ teleport-to =" body"
33
+ :placement =" tooltipPlacement"
34
+ :target =" iconButton"
35
+ :title =" tooltipTitle"
36
+ />
38
37
</b-button >
39
38
</template >
40
39
41
40
<script setup>
42
41
import { computed , ref } from ' vue'
43
42
import { PhosphorIcon } from ' @icij/murmur-next'
44
43
44
+ const iconButton = ref (null )
45
+
45
46
const props = defineProps ({
46
47
iconLeft: {
47
48
type: String ,
You can’t perform that action at this time.
0 commit comments