vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
https://antdv.com/
Other
20.28k stars 3.79k forks source link

Tooltip/Popover 在svg元素下的定位问题 #7138

Closed Kuntey closed 9 months ago

Kuntey commented 12 months ago

Version

4.0.7

Environment

macos10.15.7,Microsoft Edge119.0.2151.72,Vue3.3.8

Reproduction link

Edit on CodeSandbox

Steps to reproduce

svg元素内的rect元素添加tooltip/popover

What is expected?

tooltip/popover显示

What is actually happening?

tooltip/popover不显示


ant-design-react tooltip显示正常 [Edit on CodeSandbox

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

rauki commented 1 month ago

svg下面的元素能触发tooltip生产提示元素,但是定位不到正确的地方,显示不出来,更改绑定的父级元素getPopupContainer也没用。有解决方案吗

Kuntey commented 1 month ago

将tooltip挂在绝对定位的元素上,并设置那个元素的x,y值,目前来说只能这样