swiper4 angular6写鼠标悬浮事件

要求轮播图,当鼠标悬浮的时候,轮播停止,鼠标离开,轮播继承
<div class="swiper-container classWrap" (mouseover)='stop()'></div>

stop() {

  console.log(this.classWrap);
  this.classWrap.autopaly.stop();

}
然后鼠标悬浮上去就是一系列的报错

clipboard.png

请问有这个问题有哪位大神会吗?
非常感谢

阅读 3k
1 个回答

写this.stop()可以了,谢谢诸位

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进