File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export default {
23
23
// const modifiersTriggers = String(Object.keys(binding.modifiers)).replace(',',' ')
24
24
const closeOnClickOutside = props . closeOnClickOutside === false ? false : true
25
25
const html = props . html === false ? false : true
26
+ const popperOptions = props . popperOptions || { modifiers : { preventOverflow : { boundariesElement : 'offsetParent' } } }
26
27
return {
27
28
title,
28
29
trigger : 'click' ,
@@ -36,7 +37,7 @@ export default {
36
37
boundariesElement : document . getElementById ( props . boundaries ) || props . boundaries ,
37
38
container : props . appendToBody ? document . body : false ,
38
39
closeOnClickOutside,
39
- popperOptions : props . popperOptions
40
+ popperOptions
40
41
}
41
42
} ,
42
43
getTemplate ( header ) {
Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ export default {
17
17
getTooltipConfig ( binding ) {
18
18
const props = binding . value
19
19
const title = props . content || props
20
+ const html = props . html === false ? false : true
20
21
// const modifiersTriggers = String(Object.keys(binding.modifiers)).replace(',',' ')
21
22
const closeOnClickOutside = props . closeOnClickOutside === false ? false : true
23
+ const popperOptions = props . popperOptions || { modifiers : { preventOverflow : { boundariesElement : 'offsetParent' } } }
22
24
return {
23
25
title,
24
26
trigger : 'hover' ,
25
- html : true ,
27
+ html,
26
28
placement : props . placement || 'top' ,
27
29
delay : props . delay || 0 ,
28
30
offset : props . offset || 0 ,
@@ -32,7 +34,7 @@ export default {
32
34
boundariesElement : document . getElementById ( props . boundaries ) || props . boundaries ,
33
35
container : props . appendToBody ? document . body : false ,
34
36
closeOnClickOutside,
35
- popperOptions : props . popperOptions
37
+ popperOptions
36
38
}
37
39
} ,
38
40
getTemplate ( ) {
Original file line number Diff line number Diff line change @@ -30,10 +30,7 @@ const modifiersTooltip = {
30
30
content : 'modifiersTooltip' ,
31
31
active : true ,
32
32
appendToBody : true ,
33
- } ,
34
- modifiers : {
35
- click : true ,
36
- hover : true
33
+ html : false
37
34
}
38
35
}
39
36
You can’t perform that action at this time.
0 commit comments