Open xiejay97 opened 7 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: $parent and $children related logic refactoring to achieve React and Inula adaptation
你好,我们正在规划消除$parent和$chilren
Bot detected the issue body's language is not English, translate it automatically.
Hello, we are planning to eliminate $parent and $children
What problem does this feature solve
以carousel组件为例,在 renderless 中,获取父、子实例是依据 Vue 组件结构实现,如 carousel-item 获取到 carousel 是通过
parent.$parent
,这是由于 carousel-item 组件外层有一层适配层组件。这是无法迁移的React中的特性,我们应当通过条件获取准确的父、子实例What does the proposed API look like
父实例
子实例