File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/coreui-vue/src/components Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ const CPopover = defineComponent({
79
79
*/
80
80
'show' ,
81
81
] ,
82
- setup ( props , { slots, emit } ) {
82
+ setup ( props , { attrs , slots, emit } ) {
83
83
const togglerRef = ref ( )
84
84
const popoverRef = ref ( )
85
85
const popper = ref ( )
@@ -149,6 +149,7 @@ const CPopover = defineComponent({
149
149
class : 'popover fade bs-popover-auto' ,
150
150
ref : popoverRef ,
151
151
role : 'tooltip' ,
152
+ ...attrs ,
152
153
} ,
153
154
[
154
155
h ( 'div' , { class : 'popover-arrow' , 'data-popper-arrow' : '' } ) ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const CTooltip = defineComponent({
30
30
*/
31
31
offset : {
32
32
type : Array ,
33
- default : ( ) => [ 0 , 0 ] ,
33
+ default : ( ) => [ 0 , 6 ] ,
34
34
} ,
35
35
/**
36
36
* Describes the placement of your component after Popper.js has applied all the modifiers that may have flipped or altered the originally provided placement property.
@@ -75,7 +75,7 @@ const CTooltip = defineComponent({
75
75
*/
76
76
'show' ,
77
77
] ,
78
- setup ( props , { slots, emit } ) {
78
+ setup ( props , { attrs , slots, emit } ) {
79
79
const togglerRef = ref ( )
80
80
const tooltipRef = ref ( )
81
81
const popper = ref ( )
@@ -145,6 +145,7 @@ const CTooltip = defineComponent({
145
145
class : 'tooltip fade bs-tooltip-auto' ,
146
146
ref : tooltipRef ,
147
147
role : 'tooltip' ,
148
+ ...attrs ,
148
149
} ,
149
150
[
150
151
h ( 'div' , { class : 'tooltip-arrow' , 'data-popper-arrow' : '' } ) ,
You can’t perform that action at this time.
0 commit comments