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

渲染children #2

Open
ryuever opened this issue Aug 26, 2020 · 0 comments
Open

渲染children #2

ryuever opened this issue Aug 26, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@ryuever
Copy link
Member

ryuever commented Aug 26, 2020

背景

目前halation渲染的基本原则是所有的组件在形式上都要是同一层级,这么做在维护上有一定的提高,但是不可避免的缺少一定的灵活性,比如说开发者对于粒度化的把控,总会不可避免的出现对一些组件的引入;这个时候就需要提供对children的支持

问题点

children props的附加

假如在一个组件中支持了children的话,对于children进行渲染时它的props怎么把控,是绝对来自上游还是说同时要支持当前组件的props;如果说同时支持当前组件的props,那么对children而言它的独立性是否被打破

@ryuever ryuever added the enhancement New feature or request label Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant