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

删除连线前确认 #3692

Closed
Mafiti opened this issue Jun 19, 2023 · 4 comments
Closed

删除连线前确认 #3692

Mafiti opened this issue Jun 19, 2023 · 4 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@Mafiti
Copy link

Mafiti commented Jun 19, 2023

问题描述

需求是:删除连线前需要弹出确认,确认才能删除,否则不能删除。

目前没有找到删除事件前的钩子,尝试过validateEdge,但是该方法只能用于创建连线,或者连线过程中。

是否有其它方式可以实现这个需求呢。

重现链接

重现步骤

预期行为

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@NewByVector
Copy link
Contributor

你的删除交互是怎么样的呢?

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Jun 22, 2023
@Mafiti
Copy link
Author

Mafiti commented Jun 25, 2023

你的删除交互是怎么样的呢?

就是删除前先弹窗让用户确认是否删除,确认才删除,否则不删除

@NewByVector
Copy link
Contributor

NewByVector commented Jul 3, 2023

我的意思是你是通过哪种方式来触发删除动作,是通过快捷键呢还是 remove 工具。

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 10, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Jul 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

2 participants