Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望popover 的触发可以指定dom节点 #6767

Open
3 tasks done
duansheli opened this issue Feb 20, 2025 · 1 comment
Open
3 tasks done

希望popover 的触发可以指定dom节点 #6767

duansheli opened this issue Feb 20, 2025 · 1 comment
Labels
feature request New feature or request

Comments

@duansheli
Copy link

问题的清晰而简明的描述

在 element plus里面的 popover 的虚拟触发 可以指定在哪个节点上浮现

在这个小节【通过 Overlays 实现 Tooltip 效果】
https://juejin.cn/post/7457866467552641051#heading-15
在 bpmnjs 的节点上 悬浮显示 办理详情
但是 用户任务节点 属于 bpmnjs的节点
然后有提到 Element Plus 的 Popover 可以挂在外部节点上

建议的解决方案

比如加个属性 triggerElement="某个元素"
只是希望可以指定dom节点
该变量是否是响应式 倒不是很介意

备选方案

No response

附加上下文

No response

验证

  • 阅读 贡献指南
  • 阅读 文档
  • 检查是否已经存在请求相同功能的问题,以避免创建重复的问题。
@duansheli duansheli added the feature request New feature or request label Feb 20, 2025
@duansheli
Copy link
Author

这个是需要用到 该功能的实例
https://codesandbox.io/p/sandbox/vue-bpmn-hover-detail-7cd9z2
addEvent.js 为主要逻辑
ModelViewer.vue 为入口

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant