1. 页面引用组件,定义chass备用

<extension-task-plugin-data class="plug-data" isCompany="{{isCompany}}"></extension-task-plugin-data>

 

2. 获取组件信息

let child = this.selectComponent('.plug-data')

 

3. 修改组件数据

child.setData({
  'params.pageIndex': child.data.params.pageIndex + 1
})

 

4. 调用组件方法

child.getData(child.data.activePlugTab.type)

 

相关文章:

  • 2021-10-01
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2021-04-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-07-03
  • 2022-12-23
  • 2021-09-27
  • 2021-10-01
相关资源
相似解决方案