mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 02:57:50 +08:00
fix: [tooltip] new formula
This commit is contained in:
parent
b4c38ea7a9
commit
3f09f3f6dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user