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

sifo 不支持按条件渲染节点 #7

Open
Hu-xiaojian opened this issue Oct 29, 2021 · 1 comment
Open

sifo 不支持按条件渲染节点 #7

Hu-xiaojian opened this issue Oct 29, 2021 · 1 comment

Comments

@Hu-xiaojian
Copy link

sifo 不支持按条件渲染节点

@FrominXu
Copy link
Collaborator

按条件渲染的实现设计还需要花一些时间,节点卸载与再次渲染的生命周期处理逻辑比较复杂。

一般来说,节点条件渲染可以在 pagePlugin 的 onNodePreprocess 周期上实现;或者在组件内部实现,用 mApi.setAttributes 来控制。

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