Skip to content

渲染children #2

@ryuever

Description

@ryuever

背景

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

问题点

children props的附加

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions