jd-opensource / jd-opensource/nutui

[FR]: 支持CustomWrapper

Open
#3,177 2 comments 0 reactions 0 assignees View on GitHub
Feature Request
Dominant language
Vue
Stars
6.5k
Forks
835
PR merge metrics
No merged PRs in 30d

Description

### NutUI 包名

@nutui/nutui-taro

### 这个功能解决了什么问题?

对于嵌套层级过深的组件,Taro提供了CustomWrapper这个组件来处理,避免baseLevel过高引起模板过大,但是nutui中使用了Taro.createSelectorQuery()的组件,如果在CustomWrapper内,将会引起报错,或者无法使用

### 你期望的组件设计是怎样的?

nutui可以提供一个nut-custom-wrapper,同时将组件的ctx向下传递,内部组件获取到customwrapper,则通过Taro.createSelectorQuery()获取元素时,采用了Taro.createSelectorQuery().in(customWrapperCtx)的方式获取

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.