2***@qq.com
2***@qq.com
  • 发布:2021-03-19 11:23
  • 更新:2021-03-28 13:47
  • 阅读:597

#插件讨论# 【 SwipeAction 滑动操作 - DCloud前端团队 】滑动插件有报错

分类:uni-app

报错了:
Property or method "onClickForPC" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.

2021-03-19 11:23 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com - 数据异常

同样,报错了,错误内容如下
[Vue warn]: Property or method "onClickForPC" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in

---> <UniSwipeActionItem> at components/uni-swipe-action-item/uni-swipe-action-item.vue:1
    <UniSwipeAction> at components/uni-swipe-action/uni-swipe-action.vue:1

  • 2***@qq.com (作者)

    把onClickForPC这个方法注释一下就行,也没有啥问题出现。

    2021-03-29 10:35

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