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>
更改后的效果如下所示
