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

[功能建议]customCreateNodeContent是否可以改为async函数 #602

Open
lointain opened this issue Apr 6, 2024 · 0 comments
Open

Comments

@lointain
Copy link

lointain commented Apr 6, 2024

建议customCreateNodeContent改为async函数

好处是可以等待节点div绘制完成(比如react,或者vue的teleport render)获得宽高再继续绘制下一个节点, 这样就不需要先手动指定宽高.

我在本地实验, 加了一串await/async后, 理论上是可以的.

因为毕竟现在很少有人用原生js来开发和拼div, 基本上都是要用个vue或react的, 如果能更好的支持现代框架, 对贵软件的推广很有好处.

当然这种场景是否合适, 是否常用, 有没有其他副作用, 还需要讨论的.

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