Slickslider 无限:如果只有一张幻灯片,真的会崩溃

问题描述

我正在处理幻灯片是动态的,就像没有特定数量幻灯片一样。我使用了 slick-slider,它的作用就像一个魅力。但如果只有一张幻灯片,那么我的旋转木马就会坏掉。

SlickLSider 设置:

  dots: false,infinite: true,speed: 500,slidesToShow: 4,slidesToScroll: 1,
// Single card data coming from the backend
{

    contentTag: "test test",title: "test test test",cta: "/test/",summary: "test testtest testtest test",backgroundImage: "",imageAltText: "",podcastDuration: "",type: "",lastUpdatedDateTime: "",publishedDate: "",relevancy: 0,tags: "",templateId: "",itemId: ""
}

带有单个数据的幻灯片 + 无限:在浏览器上看起来真实

enter image description here

当我只是使无限:假然后它看起来像预期的但我需要无限循环真

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)