swiper 更改indicator-dots 屬性 隱藏面板指示點


indicator-dots 是否顯示面板指示點

所謂面板指示點如下圖

 

屬性 類型 默認值 必填 說明 最低版本
indicator-dots boolean false 是否顯示面板指示點 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>
 
更改后的效果如下所示
 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM