fix: [tooltip] new formula

This commit is contained in:
wanlei 2017-11-03 20:55:41 +08:00
parent b4c38ea7a9
commit 3f09f3f6dc
2 changed files with 0 additions and 1 deletions

View File

@ -49,7 +49,6 @@ export default {
let { top, left, bottom, right } = text
const reg = /(top|bottom|left|right)(.*)/
const [, abstractPos, suffix] = placement.match(reg)
console.info(right - left, popup.width)
let ret = placement
// we can change the position many times
if (abstractPos === 'left' && left < popup.width) ret = 'right' + suffix