Feat: provide/inject 完善父组件继承(小程序) #1781
Open
+41
−33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mpx 输出小程序端的父组件引用关系实现是基于小程序原生API selectOwnerComponent。在 Mpx 中对该 API 性能测速如下:
1000
个子组件平铺形式排列~27 ms
(调用 API1000
次)~0.027 ms/iter
1100
个组件多叉树形式递归嵌套排列~32 ms
(调用 API1100
次)~0.029 ms/iter
API 性能测试符合预期