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

自定义节点工具的onClick方法 #4429

Open
BotYang opened this issue Sep 9, 2024 · 3 comments
Open

自定义节点工具的onClick方法 #4429

BotYang opened this issue Sep 9, 2024 · 3 comments

Comments

@BotYang
Copy link

BotYang commented Sep 9, 2024

问题描述

在新节点上注册的自定义工具,指定了onClick方法,但在toJSON后的原始Cells数据中,onClick方法不存在,导致再次导入该段数据后自定义工具点击无效果

重现链接

重现步骤

同问题描述

预期行为

我期望看到onClick方法正常使用,但现在无法正常使用

平台

  • 操作系统: [Windows 11]
  • 网页浏览器: [Google Chrome]
  • X6 版本: [2.10.1]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 9, 2024

👋 @BotYang

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@caicai1998
Copy link

我也遇到了这个问题 有什么好的解决方案吗?

@Yeti-xxx
Copy link

是否可以在fromJson后再添加这些工具呢?

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

No branches or pull requests

3 participants