slideBy owlCarousel 不起作用

slideBy owlCarousel does not work

我需要它,以便在点击导航时,owl carousel 滑动 6 而不是 1。相关配置如下:

$(function() {
  $(".owl-carousel").owlCarousel({
    // mobile
    nav: false,
    navText: '',
    items: 2,
    responsiveClass:true,
    // desktop
    responsive:{
        980:{
            items:6,
            nav: true,
            navText: '',
            slideBy: 6
        }
    }
  });
});

我从以下渠道了解到 slideBy

Slide 2 items in OWL Carousel

Owl-Carousel, scroll two items at a time

但在我的例子中它不起作用。我需要 add/remove 什么配置才能使其正常工作?

我需要从 2.2.1 更改为 2.3.4 才能使用此功能。