ant-design-vue
ant-design-vue copied to clipboard
After Tooltip and its derived Popover and Popconfirm components are scaled externally (such as the body), the internally calculated top and left positioning coordinates do not correspond to each other, and they are misaligned.
trafficstars
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
1.7.7
Environment
vue2、谷歌浏览器等浏览器
Reproduction link
https://www.antdv.com/components/tooltip-cn/
Steps to reproduce
Tooltip及其衍生的Popover和Popconfirm组件在外部(比如body)使用了scale缩放后,内部计算的top和left的定位坐标值对应不上,发生错位。
What is expected?
能够适应缩放。
What is actually happening?
组件内部计算定位的left和top值还是使用了未缩放的来计算,导致漂浮的位置出错。
关注 ref https://github.com/ant-design/ant-design/issues/26681 暂无较好方案
23年了,还没合并
placement: 'left'
级联选择器/select组件 也不行,又啥好的解决方案吗?这样太受大屏适配的限制了