指点成金-最美分享吧

登录

swiper 更改indicator-dots 属性 隐藏面板指示点

佚名 举报

篇首语:本文由小编为大家整理,主要介绍了swiper 更改indicator-dots 属性 隐藏面板指示点相关的知识,希望对你有一定的参考价值。

indicator-dots 是否显示面板指示点

所谓面板指示点如下图

 

属性类型默认值必填说明最低版本
indicator-dotsbooleanfalse是否显示面板指示点1.0.0

 

如果隐藏的话 不能写 

<swiper indicator-dots="false" autoplay="true" interval="5000" duration="300">

</swiper>

因为 "false" 会被解析成字符串 而字符串是 true 值,所以直接写是不行的

 

解决如下

<swiper indicator-dots="false" autoplay="true" interval="5000" duration="300">

</swiper>

 

更改后的效果如下所示

 

 

以上是关于swiper 更改indicator-dots 属性 隐藏面板指示点的主要内容,如果未能解决你的问题,请参考以下文章