野猪佩奇_
野猪佩奇_
  • 发布:2022-02-12 12:18
  • 更新:2022-02-12 13:52
  • 阅读:432

小程序组件:父组件添加catch事件,导致子组件tap事件无法被触发,如何解决?

分类:uni-app

文件名:index.wxml
所在目录:wxcomponents

<wxs src="./touch.wxs" module="touch" />  
<view catch:touchstart="{{touch.touchstart}}"  
      catch:touchmove="{{touch.touchmove}}"  
      catch:touchend="{{touch.touchend}}">  
  <view>  
    <view bind:tap="handleTap">删除</view>  
  </view>  
  <view>  
    <view bind:tap="handleTap">删除</view>  
  </view>  
</view>
2022-02-12 12:18 负责人:无 分享
已邀请:
野猪佩奇_

野猪佩奇_ (作者)

解决了,把touchstart的catch改为bind。

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