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

如何监听组件的生命周期以及支持哪些事件? #285

Open
lithbitren opened this issue Jan 29, 2024 · 0 comments
Open

如何监听组件的生命周期以及支持哪些事件? #285

lithbitren opened this issue Jan 29, 2024 · 0 comments

Comments

@lithbitren
Copy link

addEventListener监听哪些内容才能监听到组件的生命周期?

比如:
被append到父元素上;
以及所在的group被挂载到layer上;
组件被渲染了;
remove后被删除了;
show/hide后调用的方法。

看了项目example,发现addEventListener主要涉及到的事件就是'click'极其相关的事件,'wheel'事件,'beforerender'/'afterrender'事件,但关于'render'的事件也不是很理解是什么时候触发?

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

1 participant