如何在Stencil的节点中添加删除按钮,点击后删除对应节点? #3985
Unanswered
chenlong-io
asked this question in
Q&A
Replies: 1 comment
-
|
这个功能很有必要 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
需求:用户可以在Stencil中点击删除按钮删除节点。
上图是在 官网示例 中添加了删除按钮(红框中的代码)
但鼠标移上去没有任何反应,按钮显示不出来,只有鼠标按下后才显示,但此时的节点处于可拖拽状态。
如何让鼠标移到 Stencil 中的节点上时,显示删除按钮,并点击可以删除节点。
Beta Was this translation helpful? Give feedback.
All reactions