Tencent / tdesign-miniprogram

A Wechat MiniProgram UI components lib for TDesign.
https://tdesign.tencent.com/miniprogram
MIT License
1.2k stars 276 forks source link

[SwipeCell 滑动单元格] 微信小程序开启按需注入后在真机上无法滑动 #2680

Closed Xic1007 closed 6 months ago

Xic1007 commented 6 months ago

tdesign-miniprogram 版本

1.2.9

重现链接

No response

重现步骤

1.index. json: "usingComponents": { "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell" }

  1. wxml:
  2. onActionClick({ detail }) { wx.showToast({ title: 你点击了${detail.text}, icon: 'none' }); }, 4.app.json "lazyCodeLoading": "requiredComponents"

期望结果

使用"lazyCodeLoading": "requiredComponents"时,组件在真机上也能正常使用

实际结果

使用"lazyCodeLoading": "requiredComponents"时,组件在真机上无法滑动 控制台报错: Component "miniprogramnpm/tdesign-miniprogram/swipe-cell/swipe-cell" does not have a method "function(...e){const o=gdc(e,void 0===t?"nv":void 0),r=n.apply(i,o);return gdc(r,t)}" to handle event "touchstart". Component "miniprogramnpm/tdesign-miniprogram/swipe-cell/swipe-cell" does not have a method "function(...e){const o=gdc(e,void 0===t?"nv":void 0),r=n.apply(i,o);return gdc(r,t)}" to handle event "touchmove". Component "miniprogramnpm/tdesign-miniprogram/swipe-cell/swipe-cell" does not have a method "function(...e){const o=gdc(e,void 0===t?"nv":void 0),r=n.apply(i,o);return gdc(r,t)}" to handle event "touchend".

基础库版本

No response

补充说明

No response

anlyyao commented 6 months ago

Duplicate #2668