File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export default {
2323 // const modifiersTriggers = String(Object.keys(binding.modifiers)).replace(',',' ')
2424 const closeOnClickOutside = props . closeOnClickOutside === false ? false : true
2525 const html = props . html === false ? false : true
26+ const popperOptions = props . popperOptions || { modifiers : { preventOverflow : { boundariesElement : 'offsetParent' } } }
2627 return {
2728 title,
2829 trigger : 'click' ,
@@ -36,7 +37,7 @@ export default {
3637 boundariesElement : document . getElementById ( props . boundaries ) || props . boundaries ,
3738 container : props . appendToBody ? document . body : false ,
3839 closeOnClickOutside,
39- popperOptions : props . popperOptions
40+ popperOptions
4041 }
4142 } ,
4243 getTemplate ( header ) {
Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ export default {
1717 getTooltipConfig ( binding ) {
1818 const props = binding . value
1919 const title = props . content || props
20+ const html = props . html === false ? false : true
2021 // const modifiersTriggers = String(Object.keys(binding.modifiers)).replace(',',' ')
2122 const closeOnClickOutside = props . closeOnClickOutside === false ? false : true
23+ const popperOptions = props . popperOptions || { modifiers : { preventOverflow : { boundariesElement : 'offsetParent' } } }
2224 return {
2325 title,
2426 trigger : 'hover' ,
25- html : true ,
27+ html,
2628 placement : props . placement || 'top' ,
2729 delay : props . delay || 0 ,
2830 offset : props . offset || 0 ,
@@ -32,7 +34,7 @@ export default {
3234 boundariesElement : document . getElementById ( props . boundaries ) || props . boundaries ,
3335 container : props . appendToBody ? document . body : false ,
3436 closeOnClickOutside,
35- popperOptions : props . popperOptions
37+ popperOptions
3638 }
3739 } ,
3840 getTemplate ( ) {
Original file line number Diff line number Diff line change @@ -30,10 +30,7 @@ const modifiersTooltip = {
3030 content : 'modifiersTooltip' ,
3131 active : true ,
3232 appendToBody : true ,
33- } ,
34- modifiers : {
35- click : true ,
36- hover : true
33+ html : false
3734 }
3835}
3936
You can’t perform that action at this time.
0 commit comments