|
@@ -24,7 +24,6 @@ function calculationLocation(el, target, placements) {
|
|
if (!el || !target) return;
|
|
if (!el || !target) return;
|
|
el.tooltipPosition.y = 0;
|
|
el.tooltipPosition.y = 0;
|
|
el.tooltipPosition.x = 0;
|
|
el.tooltipPosition.x = 0;
|
|
- // @ts-ignore
|
|
|
|
let el_dom = target.w_tooltip.firstElementChild.getBoundingClientRect()
|
|
let el_dom = target.w_tooltip.firstElementChild.getBoundingClientRect()
|
|
let target_dom = target.getBoundingClientRect()
|
|
let target_dom = target.getBoundingClientRect()
|
|
if (placements === "left") {
|
|
if (placements === "left") {
|
|
@@ -146,7 +145,6 @@ export const ellipsisTooltip = closeTooltip ? {} : {
|
|
const onMouseEnter = () => {
|
|
const onMouseEnter = () => {
|
|
// 判断内容长度 需要展示
|
|
// 判断内容长度 需要展示
|
|
if (isOverflow(el)) {
|
|
if (isOverflow(el)) {
|
|
- // @ts-ignore
|
|
|
|
const directiveList = allPlacements.filter(placement => binding.modifiers[placement])
|
|
const directiveList = allPlacements.filter(placement => binding.modifiers[placement])
|
|
const placements = directiveList.length ? directiveList : allPlacements
|
|
const placements = directiveList.length ? directiveList : allPlacements
|
|
if (!el.w_tooltip) {
|
|
if (!el.w_tooltip) {
|