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

我只想根节点可以新增,如何实现 #60

Open
wjyzhixing opened this issue Sep 10, 2024 · 1 comment
Open

我只想根节点可以新增,如何实现 #60

wjyzhixing opened this issue Sep 10, 2024 · 1 comment

Comments

@wjyzhixing
Copy link

我不想要添加add事件,所有对象层都可以添加,我只想根节点可以新增,如何实现

@YYsuni
Copy link
Owner

YYsuni commented Sep 10, 2024

image
用CustomizeNode 逻辑,只添加 depth 为 0, add 才为 true,就可以了。具体可以试一下。

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

2 participants