1***@163.com
1***@163.com
  • 发布:2021-03-31 18:29
  • 更新:2021-07-10 11:29
  • 阅读:1906

uni引入微信小程序组件,triggerEvent传参为undefined

分类:uni-app

uni引入微信小程序组件,https://ext.dcloud.net.cn/plugin?id=1480,组件内触发了triggerEvent,页面也有触发对应方法,但是参数丢失, 因为是在wxcomponents目录下,所以无法使用uni.$emit

2021-03-31 18:29 负责人:无 分享
已邀请:
CEN

CEN

//测试了半天,传NULL报错,看了下源码,向uni-app通讯,参数需是数组....
this.triggerEvent("onShowPanel",["test"])

该问题目前已经被锁定, 无法添加新回复