|
@@ -14,6 +14,9 @@ function calculationLocation(el, target, placements) {
|
|
let el_dom = el.$el.nextElementSibling.getBoundingClientRect()
|
|
let el_dom = el.$el.nextElementSibling.getBoundingClientRect()
|
|
let target_dom = target.getBoundingClientRect()
|
|
let target_dom = target.getBoundingClientRect()
|
|
|
|
|
|
|
|
+ console.log('el_dom:', el_dom)
|
|
|
|
+ console.log('target_dom:', target_dom)
|
|
|
|
+
|
|
if (placements === "left") {
|
|
if (placements === "left") {
|
|
el.tooltipPosition.x = target_dom.x - el_dom.width - 10
|
|
el.tooltipPosition.x = target_dom.x - el_dom.width - 10
|
|
el.tooltipPosition.y = target_dom.y - el_dom.height / 2 + target_dom.height / 2
|
|
el.tooltipPosition.y = target_dom.y - el_dom.height / 2 + target_dom.height / 2
|