fix: [tooltip] new formula
parent
e33d11ab7e
commit
7427f8099f
|
@ -49,7 +49,6 @@ export default {
|
||||||
let { top, left, bottom, right } = text
|
let { top, left, bottom, right } = text
|
||||||
const reg = /(top|bottom|left|right)(.*)/
|
const reg = /(top|bottom|left|right)(.*)/
|
||||||
const [, abstractPos, suffix] = placement.match(reg)
|
const [, abstractPos, suffix] = placement.match(reg)
|
||||||
console.info(right - left, popup.width)
|
|
||||||
let ret = placement
|
let ret = placement
|
||||||
// we can change the position many times
|
// we can change the position many times
|
||||||
if (abstractPos === 'left' && left < popup.width) ret = 'right' + suffix
|
if (abstractPos === 'left' && left < popup.width) ret = 'right' + suffix
|
||||||
|
|
Loading…
Reference in New Issue