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

当我在me-parent节点下想添加节点时,会导致添加的节点坐标发生错误 #278

Open
JasionM opened this issue Sep 19, 2024 · 4 comments

Comments

@JasionM
Copy link

JasionM commented Sep 19, 2024

image

这块代码是通过children下标方式直接获取,导致出现了问题,expander是固定用 me-epd 名称,应该用节点名称过滤查询才对吧

@SSShooter
Copy link
Owner

确实是可以通过dom操作手动插节点,但是非常麻烦,因为topic的结构其实是被包裹的,下面这一整组才是完整的topic结构
image

所以还是不建议用dom操作插入😂

@JasionM
Copy link
Author

JasionM commented Sep 23, 2024 via email

@JasionM
Copy link
Author

JasionM commented Sep 23, 2024

主要是也没有别的方式可以插入自定义节点,而且你们源码中是用children的下标拿的expander,这个操作逻辑也不太合理,除非说以后这里的结构是固定的了?

@SSShooter
Copy link
Owner

children: HTMLCollection & [Topic, Expander | undefined]

确实是固定的

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