# SelectorQuery SelectorQuery.in(Component component)

Start from base library version 1.6.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Support

Change the selection of a selector to a custom component component Inside. Initially, the selector selects only page-scoped nodes, not nodes in any custom component.

# parameter

# Component component

Custom component instance

# Return value

# SelectorQuery

# sample code

  queryMultipleNodes (){
    const query = wx.createSelectorQuery().in(this)
      res.top // Inside this component #the-id Upper boundary coordinates of nodes