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

同个页面多次启用amis-core.render渲染组件时显示多个加载状态 #11495

Open
ranwawa opened this issue Jan 13, 2025 · 1 comment

Comments

@ranwawa
Copy link
Contributor

ranwawa commented Jan 13, 2025

描述问题:

有一个前端页面,在页面的不同位置分别调用amis-core.render函数渲染不同的组件。
每一个调用的地方在rootStore ready之前都会显示过渡动画

截图或视频:

由于我们的项目重写了默认动画,所以显示的是摩托车,不影响逻辑

image

问题排查

是因为将所有组件转换为动态引入后,在ready前添加了lazyComponent导致的。

是否有什么好的方法解决这种场景的问题?

@ranwawa
Copy link
Contributor Author

ranwawa commented Jan 15, 2025

在crud中也会出现大量加载动画的情况

image

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

No branches or pull requests

1 participant